Package org.eclipse.jetty.security
Class AbstractUserAuthentication
java.lang.Object
org.eclipse.jetty.security.AbstractUserAuthentication
- All Implemented Interfaces:
Serializable
,Authentication
,Authentication.LogoutAuthentication
,Authentication.User
- 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 org.eclipse.jetty.server.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
Fields inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
declaredRolesContains
(String roleName) boolean
isUserInRole
(UserIdentity.Scope scope, String role) logout
(jakarta.servlet.ServletRequest request) Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.
-
Field Details
-
_method
-
_userIdentity
-
-
Constructor Details
-
AbstractUserAuthentication
-
-
Method Details
-
getAuthMethod
- Specified by:
getAuthMethod
in interfaceAuthentication.User
-
getUserIdentity
- Specified by:
getUserIdentity
in interfaceAuthentication.User
-
isUserInRole
- Specified by:
isUserInRole
in interfaceAuthentication.User
-
declaredRolesContains
-
logout
Description copied from interface:Authentication.LogoutAuthentication
Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Specified by:
logout
in interfaceAuthentication.LogoutAuthentication
- Parameters:
request
- the request- Returns:
- NoAuthentication if we successfully logged out
-