org.apache.chemistry.opencmis.client.bindings.spi
Class StandardAuthenticationProvider
java.lang.Object
org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
org.apache.chemistry.opencmis.client.bindings.spi.StandardAuthenticationProvider
- All Implemented Interfaces:
- Serializable, SessionAwareAuthenticationProvider, AuthenticationProvider
public class StandardAuthenticationProvider
- extends AbstractAuthenticationProvider
Standard authentication provider class.
Adds a basic authentication HTTP header and a WS-Security UsernameToken SOAP
header.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardAuthenticationProvider
public StandardAuthenticationProvider()
getHTTPHeaders
public Map<String,List<String>> getHTTPHeaders(String url)
- Description copied from interface:
AuthenticationProvider
- Returns a set of HTTP headers (key-value pairs) that should be added to a
HTTP call. This will be called by the AtomPub and the Web Services
binding. You might want to check the binding in use before you set the
headers.
- Specified by:
getHTTPHeaders
in interface AuthenticationProvider
- Overrides:
getHTTPHeaders
in class AbstractAuthenticationProvider
- Parameters:
url
- the URL of the HTTP call
- Returns:
- the HTTP headers or
null
if no additional headers
should be set
getSOAPHeaders
public Element getSOAPHeaders(Object portObject)
- Description copied from interface:
AuthenticationProvider
- Returns a SOAP header that should be added to a Web Services call.
- Specified by:
getSOAPHeaders
in interface AuthenticationProvider
- Overrides:
getSOAPHeaders
in class AbstractAuthenticationProvider
- Parameters:
portObject
- the port object
- Returns:
- the SOAP headers or
null
if no additional headers
should be set
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.