Class SessionAuthentication

  • All Implemented Interfaces:
    java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionActivationListener, javax.servlet.http.HttpSessionBindingListener, org.eclipse.jetty.server.Authentication, org.eclipse.jetty.server.Authentication.LogoutAuthentication, org.eclipse.jetty.server.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

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String __J_AUTHENTICATED  
      • 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, org.eclipse.jetty.server.UserIdentity userIdentity, java.lang.Object credentials)  
    • 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,
                                     org.eclipse.jetty.server.UserIdentity userIdentity,
                                     java.lang.Object credentials)
    • Method Detail

      • getUserIdentity

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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