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 Summary
Nested classes/interfaces inherited from interface AuthenticationState
AuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.ServeAs, AuthenticationState.Succeeded -
Field Summary
FieldsFields inherited from class LoginAuthenticator.UserAuthenticationSucceeded
_authenticationType, _userIdentityFields inherited from interface AuthenticationState
CHALLENGE, SEND_FAILURE, SEND_SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionSessionAuthentication(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidonSessionActivation(Session session) voidonSessionPassivation(Session session) toString()Methods inherited from class LoginAuthenticator.UserAuthenticationSucceeded
getAuthenticationType, isUserInRole, logoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AuthenticationState.Succeeded
getUserPrincipalMethods inherited from interface Session.ValueListener
onSessionAttributeUpdate
-
Field Details
-
AUTHENTICATED_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
SessionAuthentication
-
-
Method Details
-
getUserIdentity
- Specified by:
getUserIdentityin interfaceAuthenticationState.Succeeded- Overrides:
getUserIdentityin classLoginAuthenticator.UserAuthenticationSucceeded- Returns:
- The
UserIdentityof the authenticated user.
-
toString
- Overrides:
toStringin classLoginAuthenticator.UserAuthenticationSucceeded
-
onSessionActivation
- Specified by:
onSessionActivationin interfaceSession.ValueListener
-
onSessionPassivation
- Specified by:
onSessionPassivationin interfaceSession.ValueListener
-