Class SessionAuthentication
java.lang.Object
org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
org.eclipse.jetty.security.authentication.SessionAuthentication
- All Implemented Interfaces:
- Serializable, AuthenticationState, AuthenticationState.Succeeded, Request.AuthenticationState, Session.ValueListener
public class SessionAuthentication
extends LoginAuthenticator.UserAuthenticationSucceeded
implements Serializable, Session.ValueListener
SessionAuthentication
When a user has been successfully authenticated with some types
of Authenticator, the Authenticator stashes a SessionAuthentication
into an HttpSession to remember that the user is authenticated.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface AuthenticationStateAuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.ServeAs, AuthenticationState.Succeeded
- 
Field SummaryFieldsFields inherited from class LoginAuthenticator.UserAuthenticationSucceeded_authenticationType, _userIdentityFields inherited from interface AuthenticationStateCHALLENGE, SEND_FAILURE, SEND_SUCCESS
- 
Constructor SummaryConstructorsConstructorDescriptionSessionAuthentication(String method, UserIdentity userIdentity, Object credentials) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidonSessionActivation(Session session) voidonSessionPassivation(Session session) toString()Methods inherited from class LoginAuthenticator.UserAuthenticationSucceededgetAuthenticationType, isUserInRole, logoutMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AuthenticationState.SucceededgetUserPrincipalMethods inherited from interface Session.ValueListeneronSessionAttributeUpdate
- 
Field Details- 
AUTHENTICATED_ATTRIBUTE- See Also:
 
 
- 
- 
Constructor Details- 
SessionAuthentication
 
- 
- 
Method Details- 
getUserIdentity- Specified by:
- getUserIdentityin interface- AuthenticationState.Succeeded
- Overrides:
- getUserIdentityin class- LoginAuthenticator.UserAuthenticationSucceeded
- Returns:
- The UserIdentityof the authenticated user.
 
- 
toString- Overrides:
- toStringin class- LoginAuthenticator.UserAuthenticationSucceeded
 
- 
onSessionActivation- Specified by:
- onSessionActivationin interface- Session.ValueListener
 
- 
onSessionPassivation- Specified by:
- onSessionPassivationin interface- Session.ValueListener
 
 
-