Class SessionAuthentication
java.lang.Object
org.eclipse.jetty.security.AbstractUserAuthentication
org.eclipse.jetty.security.authentication.SessionAuthentication
- All Implemented Interfaces:
Serializable
,EventListener
,javax.servlet.http.HttpSessionActivationListener
,javax.servlet.http.HttpSessionBindingListener
,Authentication
,Authentication.LogoutAuthentication
,Authentication.User
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 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
FieldsModifier and TypeFieldDescriptionstatic final String
private final Object
private final String
private javax.servlet.http.HttpSession
private static final Logger
private static final long
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
ConstructorsConstructorDescriptionSessionAuthentication
(String method, UserIdentity userIdentity, Object credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoid
logout()
Deprecated.private void
readObject
(ObjectInputStream stream) void
sessionDidActivate
(javax.servlet.http.HttpSessionEvent se) void
sessionWillPassivate
(javax.servlet.http.HttpSessionEvent se) toString()
void
valueBound
(javax.servlet.http.HttpSessionBindingEvent event) Deprecated.void
valueUnbound
(javax.servlet.http.HttpSessionBindingEvent event) Deprecated.Methods inherited from class org.eclipse.jetty.security.AbstractUserAuthentication
declaredRolesContains, getAuthMethod, isUserInRole, logout
-
Field Details
-
LOG
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
__J_AUTHENTICATED
- See Also:
-
_name
-
_credentials
-
_session
private transient javax.servlet.http.HttpSession _session
-
-
Constructor Details
-
SessionAuthentication
-
-
Method Details
-
getUserIdentity
- Specified by:
getUserIdentity
in interfaceAuthentication.User
- Overrides:
getUserIdentity
in classAbstractUserAuthentication
-
readObject
- Throws:
IOException
ClassNotFoundException
-
logout
Deprecated.- Specified by:
logout
in interfaceAuthentication.User
-
toString
-
sessionWillPassivate
public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionWillPassivate
in interfacejavax.servlet.http.HttpSessionActivationListener
-
sessionDidActivate
public void sessionDidActivate(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionDidActivate
in interfacejavax.servlet.http.HttpSessionActivationListener
-
valueBound
Deprecated.- Specified by:
valueBound
in interfacejavax.servlet.http.HttpSessionBindingListener
-
valueUnbound
Deprecated.- Specified by:
valueUnbound
in interfacejavax.servlet.http.HttpSessionBindingListener
-