Class SessionAuthentication
- java.lang.Object
-
- org.eclipse.jetty.security.AbstractUserAuthentication
-
- org.eclipse.jetty.security.authentication.SessionAuthentication
-
- All Implemented Interfaces:
java.io.Serializable,java.util.EventListener,javax.servlet.http.HttpSessionActivationListener,javax.servlet.http.HttpSessionBindingListener,Authentication,Authentication.LogoutAuthentication,Authentication.User
public class SessionAuthentication extends AbstractUserAuthentication implements java.io.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:
- Serialized Form
-
-
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 Modifier and Type Field Description static java.lang.String__J_AUTHENTICATED-
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
Constructors Constructor Description SessionAuthentication(java.lang.String method, UserIdentity userIdentity, java.lang.Object credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UserIdentitygetUserIdentity()voidlogout()Deprecated.voidsessionDidActivate(javax.servlet.http.HttpSessionEvent se)voidsessionWillPassivate(javax.servlet.http.HttpSessionEvent se)java.lang.StringtoString()voidvalueBound(javax.servlet.http.HttpSessionBindingEvent event)Deprecated.voidvalueUnbound(javax.servlet.http.HttpSessionBindingEvent event)Deprecated.-
Methods inherited from class org.eclipse.jetty.security.AbstractUserAuthentication
declaredRolesContains, getAuthMethod, isUserInRole, logout
-
-
-
-
Field Detail
-
__J_AUTHENTICATED
public static final java.lang.String __J_AUTHENTICATED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SessionAuthentication
public SessionAuthentication(java.lang.String method, UserIdentity userIdentity, java.lang.Object credentials)
-
-
Method Detail
-
getUserIdentity
public UserIdentity getUserIdentity()
- Specified by:
getUserIdentityin interfaceAuthentication.User- Overrides:
getUserIdentityin classAbstractUserAuthentication
-
logout
@Deprecated public void logout()
Deprecated.- Specified by:
logoutin interfaceAuthentication.User
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
valueBound
@Deprecated public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Deprecated.- Specified by:
valueBoundin interfacejavax.servlet.http.HttpSessionBindingListener
-
valueUnbound
@Deprecated public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Deprecated.- Specified by:
valueUnboundin interfacejavax.servlet.http.HttpSessionBindingListener
-
-