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:
  • 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(jakarta.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionWillPassivate in interface jakarta.servlet.http.HttpSessionActivationListener
    • sessionDidActivate

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