Class SessionAuthentication
java.lang.Object
org.eclipse.jetty.ee8.security.AbstractUserAuthentication
org.eclipse.jetty.ee8.security.authentication.SessionAuthentication
- All Implemented Interfaces:
Serializable, EventListener, javax.servlet.http.HttpSessionActivationListener, javax.servlet.http.HttpSessionBindingListener, Authentication, Authentication.LogoutAuthentication, Authentication.User, Request.AuthenticationState
public class SessionAuthentication
extends AbstractUserAuthentication
implements Serializable, javax.servlet.http.HttpSessionActivationListener, javax.servlet.http.HttpSessionBindingListener
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 Authentication
Authentication.Challenge, Authentication.Deferred, Authentication.Failed, Authentication.Failure, Authentication.LoginAuthentication, Authentication.LogoutAuthentication, Authentication.NonAuthenticated, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped -
Field Summary
FieldsFields inherited from class AbstractUserAuthentication
_method, _userIdentityFields inherited from interface Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED -
Constructor Summary
ConstructorsConstructorDescriptionSessionAuthentication(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoidsessionDidActivate(javax.servlet.http.HttpSessionEvent se) voidsessionWillPassivate(javax.servlet.http.HttpSessionEvent se) toString()Methods inherited from class AbstractUserAuthentication
declaredRolesContains, getAuthMethod, isUserInRole, logoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Authentication.User
getUserPrincipalMethods inherited from interface javax.servlet.http.HttpSessionBindingListener
valueBound, valueUnbound
-
Field Details
-
__J_AUTHENTICATED
- See Also:
-
-
Constructor Details
-
SessionAuthentication
-
-
Method Details
-
getUserIdentity
- Specified by:
getUserIdentityin interfaceAuthentication.User- Overrides:
getUserIdentityin classAbstractUserAuthentication
-
toString
-
sessionWillPassivate
public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionWillPassivatein interfacejavax.servlet.http.HttpSessionActivationListener
-
sessionDidActivate
public void sessionDidActivate(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionDidActivatein interfacejavax.servlet.http.HttpSessionActivationListener
-