java.lang.Object
org.eclipse.jetty.ee8.security.AbstractUserAuthentication
org.eclipse.jetty.ee8.security.authentication.SessionAuthentication
All Implemented Interfaces:
Serializable, EventListener, javax.servlet.http.HttpSessionActivationListener, javax.servlet.http.HttpSessionBindingListener, org.eclipse.jetty.ee8.nested.Authentication, org.eclipse.jetty.ee8.nested.Authentication.LogoutAuthentication, org.eclipse.jetty.ee8.nested.Authentication.User, org.eclipse.jetty.server.Request.AuthenticationState

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.ee8.nested.Authentication

    org.eclipse.jetty.ee8.nested.Authentication.Challenge, org.eclipse.jetty.ee8.nested.Authentication.Deferred, org.eclipse.jetty.ee8.nested.Authentication.Failed, org.eclipse.jetty.ee8.nested.Authentication.Failure, org.eclipse.jetty.ee8.nested.Authentication.LoginAuthentication, org.eclipse.jetty.ee8.nested.Authentication.LogoutAuthentication, org.eclipse.jetty.ee8.nested.Authentication.NonAuthenticated, org.eclipse.jetty.ee8.nested.Authentication.ResponseSent, org.eclipse.jetty.ee8.nested.Authentication.SendSuccess, org.eclipse.jetty.ee8.nested.Authentication.User, org.eclipse.jetty.ee8.nested.Authentication.Wrapped
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.eclipse.jetty.ee8.security.AbstractUserAuthentication

    _method, _userIdentity

    Fields inherited from interface org.eclipse.jetty.ee8.nested.Authentication

    NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionAuthentication(String method, org.eclipse.jetty.security.UserIdentity userIdentity, Object credentials)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.security.UserIdentity
     
    void
    sessionDidActivate(javax.servlet.http.HttpSessionEvent se)
     
    void
    sessionWillPassivate(javax.servlet.http.HttpSessionEvent se)
     
     

    Methods inherited from class org.eclipse.jetty.ee8.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 org.eclipse.jetty.ee8.nested.Authentication.User

    getUserPrincipal

    Methods inherited from interface javax.servlet.http.HttpSessionBindingListener

    valueBound, valueUnbound
  • Field Details

  • Constructor Details

    • SessionAuthentication

      public SessionAuthentication(String method, org.eclipse.jetty.security.UserIdentity userIdentity, Object credentials)
  • Method Details

    • getUserIdentity

      public org.eclipse.jetty.security.UserIdentity getUserIdentity()
      Specified by:
      getUserIdentity in interface org.eclipse.jetty.ee8.nested.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