Class AbstractUserAuthentication

  • All Implemented Interfaces:
    Serializable, org.eclipse.jetty.server.Authentication, 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:
    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.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 _method  
      protected org.eclipse.jetty.server.UserIdentity _userIdentity  
      • Fields inherited from interface org.eclipse.jetty.server.Authentication

        NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
    • Field Detail

      • _method

        protected String _method
      • _userIdentity

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

      • AbstractUserAuthentication

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

      • 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)