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 Summary
ConstructorsConstructorDescriptionConstruct -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(Description.RequiredAuthentication required, boolean isGuest) Checks that the user has access to the webscript.booleanCheck if the credentials are empty.
-
Constructor Details
-
BasicHttpAuthenticator
Construct
-
-
Method Details
-
authenticate
Checks that the user has access to the webscript.- Specified by:
authenticatein interfaceAuthenticator- Parameters:
required- Required level of authenticationisGuest- 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:
emptyCredentialsin interfaceAuthenticator- Returns:
- true if the credentials are emtpy
-