Class AbstractUserAuthentication

java.lang.Object
org.eclipse.jetty.security.AbstractUserAuthentication
All Implemented Interfaces:
Serializable, org.eclipse.jetty.server.Authentication, org.eclipse.jetty.server.Authentication.LogoutAuthentication, org.eclipse.jetty.server.Authentication.User
Direct Known Subclasses:
SessionAuthentication, UserAuthentication

public abstract class AbstractUserAuthentication extends Object implements org.eclipse.jetty.server.Authentication.User, Serializable
AbstractUserAuthentication Base class for representing an authenticated user.
See Also:
  • 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
    protected String
     
    protected org.eclipse.jetty.server.UserIdentity
     

    Fields inherited from interface org.eclipse.jetty.server.Authentication

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

    Constructors
    Constructor
    Description
    AbstractUserAuthentication(String method, org.eclipse.jetty.server.UserIdentity userIdentity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    org.eclipse.jetty.server.UserIdentity
     
    boolean
    isUserInRole(org.eclipse.jetty.server.UserIdentity.Scope scope, String role)
     
    org.eclipse.jetty.server.Authentication
    logout(javax.servlet.ServletRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _method

      protected String _method
    • _userIdentity

      protected transient org.eclipse.jetty.server.UserIdentity _userIdentity
  • Constructor Details

    • AbstractUserAuthentication

      public AbstractUserAuthentication(String method, org.eclipse.jetty.server.UserIdentity userIdentity)
  • Method Details

    • getAuthMethod

      public String getAuthMethod()
      Specified by:
      getAuthMethod in interface org.eclipse.jetty.server.Authentication.User
    • getUserIdentity

      public org.eclipse.jetty.server.UserIdentity getUserIdentity()
      Specified by:
      getUserIdentity in interface org.eclipse.jetty.server.Authentication.User
    • isUserInRole

      public boolean isUserInRole(org.eclipse.jetty.server.UserIdentity.Scope scope, String role)
      Specified by:
      isUserInRole in interface org.eclipse.jetty.server.Authentication.User
    • declaredRolesContains

      public boolean declaredRolesContains(String roleName)
    • logout

      public org.eclipse.jetty.server.Authentication logout(javax.servlet.ServletRequest request)
      Specified by:
      logout in interface org.eclipse.jetty.server.Authentication.LogoutAuthentication