org.springframework.extensions.webscripts
Class BasicHttpAuthenticatorFactory

java.lang.Object
  extended by org.springframework.extensions.webscripts.BasicHttpAuthenticatorFactory
All Implemented Interfaces:
ServletAuthenticatorFactory

public class BasicHttpAuthenticatorFactory
extends Object
implements ServletAuthenticatorFactory

HTTP Basic Authentication for web-tier. Provides either delegated or direct HTTP authentication to the designated endpoint. If delegation is used, the endpoint supplied must perform the handshake when called.

Author:
Kevin Roast

Nested Class Summary
 class BasicHttpAuthenticatorFactory.BasicHttpAuthenticator
          HTTP Basic Authentication
 
Constructor Summary
BasicHttpAuthenticatorFactory()
           
 
Method Summary
 Authenticator create(WebScriptServletRequest req, WebScriptServletResponse res)
          Create Servlet Authenticator
 void setConnectorService(ConnectorService connectorService)
           
 void setDelegate(boolean delegate)
           
 void setEndpointId(String endpointId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHttpAuthenticatorFactory

public BasicHttpAuthenticatorFactory()
Method Detail

setConnectorService

public void setConnectorService(ConnectorService connectorService)
Parameters:
connectorService - the ConnectorService to use

setEndpointId

public void setEndpointId(String endpointId)
Parameters:
endpointId - EndPoint Id to use

setDelegate

public void setDelegate(boolean delegate)
Parameters:
delegate - True to delegate actual auth to the connector framework False to perform the authentication directly

create

public Authenticator create(WebScriptServletRequest req,
                            WebScriptServletResponse res)
Description copied from interface: ServletAuthenticatorFactory
Create Servlet Authenticator

Specified by:
create in interface ServletAuthenticatorFactory
Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.