Class AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator

java.lang.Object
org.springframework.extensions.webscripts.AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator
All Implemented Interfaces:
Authenticator
Enclosing class:
AbstractBasicHttpAuthenticatorFactory

public class AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator extends Object implements Authenticator
HTTP Basic Authentication
  • Constructor Details

  • Method Details

    • authenticate

      public boolean authenticate(Description.RequiredAuthentication required, boolean isGuest)
      Checks that the user has access to the webscript.
      Specified by:
      authenticate in interface Authenticator
      Parameters:
      required - Required level of authentication
      isGuest - true if a Guest is accessing the web script
      Returns:
      true if webscript has "none" or "guest" authentication OR user and password match and user has requested role
    • emptyCredentials

      public boolean emptyCredentials()
      Check if the credentials are empty.
      Specified by:
      emptyCredentials in interface Authenticator
      Returns:
      true if the credentials are emtpy