Package org.eclipse.jetty.ee8.nested
Interface Authentication.User
- All Superinterfaces:
Authentication
,Authentication.LogoutAuthentication
,Request.AuthenticationState
- All Known Implementing Classes:
AbstractUserAuthentication
,FormAuthenticator.FormAuthentication
,OpenIdAuthenticator.OpenIdAuthentication
,SessionAuthentication
,UserAuthentication
- Enclosing interface:
Authentication
A successful Authentication with User information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.ee8.nested.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.ee8.nested.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
Method Summary
Modifier and TypeMethodDescriptiondefault Principal
boolean
isUserInRole
(UserIdentityScope scope, String role) Methods inherited from interface org.eclipse.jetty.ee8.nested.Authentication.LogoutAuthentication
logout
-
Method Details
-
getAuthMethod
String getAuthMethod() -
getUserIdentity
UserIdentity getUserIdentity() -
isUserInRole
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceRequest.AuthenticationState
- Returns:
- The authenticated user
Principal
, or null if the Authentication is in a non-authenticated state.
-