Class AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator
-
- All Implemented Interfaces:
Authenticator
- Enclosing class:
- AbstractBasicHttpAuthenticatorFactory
public class AbstractBasicHttpAuthenticatorFactory.BasicHttpAuthenticator extends java.lang.Object implements Authenticator
HTTP Basic Authentication
-
-
Constructor Summary
Constructors Constructor Description BasicHttpAuthenticator(WebScriptServletRequest req, WebScriptServletResponse res)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(Description.RequiredAuthentication required, boolean isGuest)Checks that the user has access to the webscript.booleanemptyCredentials()Check if the credentials are empty.
-
-
-
Constructor Detail
-
BasicHttpAuthenticator
public BasicHttpAuthenticator(WebScriptServletRequest req, WebScriptServletResponse res)
Construct
-
-
Method Detail
-
authenticate
public boolean authenticate(Description.RequiredAuthentication required, boolean isGuest)
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
-
-