Class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator

java.lang.Object
org.alfresco.repo.web.scripts.servlet.BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
All Implemented Interfaces:
org.springframework.extensions.webscripts.Authenticator
Direct Known Subclasses:
RemoteUserAuthenticatorFactory.RemoteUserAuthenticator
Enclosing class:
BasicHttpAuthenticatorFactory

public class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator extends Object implements org.springframework.extensions.webscripts.Authenticator
HTTP Basic Authentication
Author:
davidc
  • Field Details

    • servletReq

      protected org.springframework.extensions.webscripts.servlet.WebScriptServletRequest servletReq
    • servletRes

      protected org.springframework.extensions.webscripts.servlet.WebScriptServletResponse servletRes
    • authorization

      protected String authorization
    • ticket

      protected String ticket
    • listener

      protected AuthenticationListener listener
  • Constructor Details

    • BasicHttpAuthenticator

      public BasicHttpAuthenticator(org.springframework.extensions.webscripts.servlet.WebScriptServletRequest req, org.springframework.extensions.webscripts.servlet.WebScriptServletResponse res, AuthenticationListener listener)
      Construct
      Parameters:
      req - WebScriptServletRequest
      res - WebScriptServletResponse
      listener - AuthenticationListener
  • Method Details

    • authenticate

      public boolean authenticate(org.springframework.extensions.webscripts.Description.RequiredAuthentication required, boolean isGuest)
      Specified by:
      authenticate in interface org.springframework.extensions.webscripts.Authenticator
    • emptyCredentials

      public boolean emptyCredentials()
      Specified by:
      emptyCredentials in interface org.springframework.extensions.webscripts.Authenticator
    • isBasicAuthHeaderPresentForAdmin

      protected boolean isBasicAuthHeaderPresentForAdmin()