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
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 org.eclipse.jetty.security.AuthenticationState
AuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.ServeAs, AuthenticationState.Succeeded -
Field Summary
FieldsFields inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
_authenticationType, _userIdentityFields inherited from interface org.eclipse.jetty.security.AuthenticationState
CHALLENGE, SEND_FAILURE, SEND_SUCCESSFields inherited from interface org.eclipse.jetty.server.Request.AuthenticationState
NONE -
Constructor Summary
ConstructorsConstructorDescriptionSessionAuthentication(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidonSessionActivation(Session session) voidonSessionPassivation(Session session) toString()Methods inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
getAuthenticationType, isUserInRole, logoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.security.AuthenticationState.Succeeded
getUserPrincipalMethods inherited from interface org.eclipse.jetty.server.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
-