org.springframework.extensions.webscripts
Class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator

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

public class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
extends Object
implements Authenticator

HTTP Basic Authentication


Constructor Summary
BasicHttpAuthenticatorFactory.BasicHttpAuthenticator(WebScriptServletRequest req, WebScriptServletResponse res)
          Construct
 
Method Summary
 boolean authenticate(Description.RequiredAuthentication required, boolean isGuest)
          Authenticate Web Script execution
 boolean emptyCredentials()
          Are credentials set in the request ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHttpAuthenticatorFactory.BasicHttpAuthenticator

public BasicHttpAuthenticatorFactory.BasicHttpAuthenticator(WebScriptServletRequest req,
                                                            WebScriptServletResponse res)
Construct

Parameters:
authenticationService -
req -
res -
Method Detail

authenticate

public boolean authenticate(Description.RequiredAuthentication required,
                            boolean isGuest)
Description copied from interface: Authenticator
Authenticate Web Script execution

Specified by:
authenticate in interface Authenticator
Parameters:
required - required level of authentication
isGuest - is Guest accessing the web script
Returns:
true if authorised to execute the script, false otherwise

emptyCredentials

public boolean emptyCredentials()
Description copied from interface: Authenticator
Are credentials set in the request ?

Specified by:
emptyCredentials in interface Authenticator
Returns:
true if credentials are empty


Copyright © 2009 SpringSource, Inc. All Rights Reserved.