Module org.eclipse.jetty.security
Package org.eclipse.jetty.security
Interface AuthenticationState.Succeeded
- All Superinterfaces:
AuthenticationState,org.eclipse.jetty.server.Request.AuthenticationState
- All Known Implementing Classes:
LoginAuthenticator.UserAuthenticationSent,LoginAuthenticator.UserAuthenticationSucceeded,SessionAuthentication
- Enclosing interface:
AuthenticationState
A successful Authentication with User information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.security.AuthenticationState
AuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.Succeeded -
Field Summary
Fields inherited from interface org.eclipse.jetty.security.AuthenticationState
CHALLENGE, SEND_FAILURE, SEND_SUCCESS -
Method Summary
Modifier and TypeMethodDescriptiondefault PrincipalbooleanisUserInRole(String role) voidlogout(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response) Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.
-
Method Details
-
getAuthenticationType
String getAuthenticationType()- Returns:
- The method used to authenticate the user.
-
getUserIdentity
UserIdentity getUserIdentity()- Returns:
- The
UserIdentityof the authenticated user.
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceorg.eclipse.jetty.server.Request.AuthenticationState
-
isUserInRole
- Parameters:
role- The role to check.- Returns:
- True if the user is in the passed role
-
logout
void logout(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response) Remove any user information that may be present in the request such that a call to getUserPrincipal/getRemoteUser will return null.- Parameters:
request- the requestresponse- the response
-