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:
  • Field Details

  • Constructor Details

  • Method Details

    • getUserIdentity

      public UserIdentity getUserIdentity()
      Specified by:
      getUserIdentity in interface Authentication.User
      Overrides:
      getUserIdentity in class AbstractUserAuthentication
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • sessionWillPassivate

      public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListener
    • sessionDidActivate

      public void sessionDidActivate(javax.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListener