org.springframework.extensions.webscripts
Class BasicHttpAuthenticatorFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicHttpAuthenticatorFactory
public BasicHttpAuthenticatorFactory()
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.