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 org.eclipse.jetty.security.AuthenticationState
AuthenticationState.Deferred, AuthenticationState.ResponseSent, AuthenticationState.ServeAs, AuthenticationState.Succeeded
-
Field Summary
Fields inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
_authenticationType, _userIdentity
Fields inherited from interface org.eclipse.jetty.security.AuthenticationState
CHALLENGE, SEND_FAILURE, SEND_SUCCESS
-
Constructor Summary
ConstructorDescriptionSessionAuthentication
(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onSessionActivation
(Session session) void
onSessionPassivation
(Session session) toString()
Methods inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded
getAuthenticationType, isUserInRole, logout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.security.AuthenticationState.Succeeded
getUserPrincipal
Methods inherited from interface org.eclipse.jetty.server.Session.ValueListener
onSessionAttributeUpdate
-
Field Details
-
AUTHENTICATED_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
SessionAuthentication
-
-
Method Details
-
getUserIdentity
- Specified by:
getUserIdentity
in interfaceAuthenticationState.Succeeded
- Overrides:
getUserIdentity
in classLoginAuthenticator.UserAuthenticationSucceeded
- Returns:
- The
UserIdentity
of the authenticated user.
-
toString
- Overrides:
toString
in classLoginAuthenticator.UserAuthenticationSucceeded
-
onSessionActivation
- Specified by:
onSessionActivation
in interfaceSession.ValueListener
-
onSessionPassivation
- Specified by:
onSessionPassivation
in interfaceSession.ValueListener
-