Class AbstractUserAuthentication
java.lang.Object
org.eclipse.jetty.ee8.security.AbstractUserAuthentication
- All Implemented Interfaces:
Serializable, Authentication, Authentication.LogoutAuthentication, Authentication.User, Request.AuthenticationState
- Direct Known Subclasses:
SessionAuthentication, UserAuthentication
public abstract class AbstractUserAuthentication
extends Object
implements Authentication.User, Serializable
AbstractUserAuthentication
Base class for representing an authenticated user.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Authentication
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Authentication.NonAuthenticated, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped -
Field Summary
FieldsFields inherited from interface Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeclaredRolesContains(String roleName) booleanisUserInRole(UserIdentityScope scope, String role) logout(javax.servlet.ServletRequest request) Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Authentication.User
getUserPrincipal
-
Field Details
-
_method
-
_userIdentity
-
-
Constructor Details
-
AbstractUserAuthentication
-
-
Method Details
-
getAuthMethod
- Specified by:
getAuthMethodin interfaceAuthentication.User
-
getUserIdentity
- Specified by:
getUserIdentityin interfaceAuthentication.User
-
isUserInRole
- Specified by:
isUserInRolein interfaceAuthentication.User
-
declaredRolesContains
-
logout
Description copied from interface:Authentication.LogoutAuthenticationRemove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Specified by:
logoutin interfaceAuthentication.LogoutAuthentication- Parameters:
request- the request- Returns:
- NoAuthentication if we successfully logged out
-