Class LoginAuthenticator.UserAuthenticationSucceeded
java.lang.Object
org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
- All Implemented Interfaces:
Serializable, AuthenticationState, AuthenticationState.Succeeded, Request.AuthenticationState
- Direct Known Subclasses:
LoginAuthenticator.UserAuthenticationSent, SessionAuthentication
- Enclosing class:
LoginAuthenticator
public static class LoginAuthenticator.UserAuthenticationSucceeded
extends Object
implements AuthenticationState.Succeeded, Serializable
Base class for representing a successful authentication state.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface AuthenticationState
AuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.ServeAs, AuthenticationState.Succeeded -
Field Summary
FieldsFields inherited from interface AuthenticationState
CHALLENGE, SEND_FAILURE, SEND_SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionUserAuthenticationSucceeded(String authenticationType, UserIdentity userIdentity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisUserInRole(String role) voidRemove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AuthenticationState.Succeeded
getUserPrincipal
-
Field Details
-
_authenticationType
-
_userIdentity
-
-
Constructor Details
-
UserAuthenticationSucceeded
-
-
Method Details
-
getAuthenticationType
- Specified by:
getAuthenticationTypein interfaceAuthenticationState.Succeeded- Returns:
- The method used to authenticate the user.
-
getUserIdentity
- Specified by:
getUserIdentityin interfaceAuthenticationState.Succeeded- Returns:
- The
UserIdentityof the authenticated user.
-
isUserInRole
- Specified by:
isUserInRolein interfaceAuthenticationState.Succeeded- Parameters:
role- The role to check.- Returns:
- True if the user is in the passed role
-
logout
Description copied from interface:AuthenticationState.SucceededRemove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Specified by:
logoutin interfaceAuthenticationState.Succeeded- Parameters:
request- the requestresponse- the response
-
toString
-