Class SessionAuthentication
java.lang.Object
org.eclipse.jetty.security.AbstractUserAuthentication
org.eclipse.jetty.security.authentication.SessionAuthentication
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionActivationListener
,jakarta.servlet.http.HttpSessionBindingListener
,Serializable
,EventListener
,Authentication
,Authentication.LogoutAuthentication
,Authentication.User
public class SessionAuthentication
extends AbstractUserAuthentication
implements Serializable, jakarta.servlet.http.HttpSessionActivationListener, jakarta.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 org.eclipse.jetty.server.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
Fields inherited from class org.eclipse.jetty.security.AbstractUserAuthentication
_method, _userIdentity
Fields inherited from interface org.eclipse.jetty.server.Authentication
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
-
Constructor Summary
ConstructorDescriptionSessionAuthentication
(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoid
sessionDidActivate
(jakarta.servlet.http.HttpSessionEvent se) void
sessionWillPassivate
(jakarta.servlet.http.HttpSessionEvent se) toString()
Methods inherited from class org.eclipse.jetty.security.AbstractUserAuthentication
declaredRolesContains, getAuthMethod, isUserInRole, logout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.servlet.http.HttpSessionBindingListener
valueBound, valueUnbound
-
Field Details
-
__J_AUTHENTICATED
- See Also:
-
-
Constructor Details
-
SessionAuthentication
-
-
Method Details
-
getUserIdentity
- Specified by:
getUserIdentity
in interfaceAuthentication.User
- Overrides:
getUserIdentity
in classAbstractUserAuthentication
-
toString
-
sessionWillPassivate
public void sessionWillPassivate(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionWillPassivate
in interfacejakarta.servlet.http.HttpSessionActivationListener
-
sessionDidActivate
public void sessionDidActivate(jakarta.servlet.http.HttpSessionEvent se) - Specified by:
sessionDidActivate
in interfacejakarta.servlet.http.HttpSessionActivationListener
-