Module org.eclipse.jetty.security
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,org.eclipse.jetty.server.Request.AuthenticationState,org.eclipse.jetty.server.Session.ValueListener
public class SessionAuthentication
extends LoginAuthenticator.UserAuthenticationSucceeded
implements Serializable, org.eclipse.jetty.server.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 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_SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionSessionAuthentication(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidonSessionActivation(org.eclipse.jetty.server.Session session) voidonSessionPassivation(org.eclipse.jetty.server.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
public void onSessionActivation(org.eclipse.jetty.server.Session session) - Specified by:
onSessionActivationin interfaceorg.eclipse.jetty.server.Session.ValueListener
-
onSessionPassivation
public void onSessionPassivation(org.eclipse.jetty.server.Session session) - Specified by:
onSessionPassivationin interfaceorg.eclipse.jetty.server.Session.ValueListener
-