org.springframework.social.alfresco.connect.cmis
Class CMISOAuthAuthenticationProvider
java.lang.Object
org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
org.springframework.social.alfresco.connect.cmis.CMISOAuthAuthenticationProvider
- All Implemented Interfaces:
- Serializable, org.apache.chemistry.opencmis.client.bindings.spi.SessionAwareAuthenticationProvider, org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider
public class CMISOAuthAuthenticationProvider
- extends org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
- Author:
- sglover, jottley
- See Also:
- Serialized Form
| Methods inherited from class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider |
getHostnameVerifier, getPassword, getProxyPassword, getProxyUser, getSession, getSSLSocketFactory, getUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMISOAuthAuthenticationProvider
public CMISOAuthAuthenticationProvider(String accessToken)
- Create new Alfresco CMISAuthenticationProvider
- Parameters:
accessToken - - the Api access Token
setSession
public void setSession(org.apache.chemistry.opencmis.client.bindings.spi.BindingSession session)
- Specified by:
setSession in interface org.apache.chemistry.opencmis.client.bindings.spi.SessionAwareAuthenticationProvider- Overrides:
setSession in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
getHTTPHeaders
public Map<String,List<String>> getHTTPHeaders(String url)
- Specified by:
getHTTPHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider- Overrides:
getHTTPHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
putResponseHeaders
public void putResponseHeaders(String url,
int statusCode,
Map<String,List<String>> headers)
- Specified by:
putResponseHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider- Overrides:
putResponseHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
getSOAPHeaders
public Element getSOAPHeaders(Object portObject)
- Specified by:
getSOAPHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvider- Overrides:
getSOAPHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
getFixedHeaders
protected Map<String,List<String>> getFixedHeaders()
- Returns the HTTP headers that are sent with all requests. The returned map is mutable but not synchronized!
createBasicAuthHeaderValue
protected List<String> createBasicAuthHeaderValue(String username,
String password)
- Creates a basic authentication header value from a username and a password.
isTrue
protected boolean isTrue(String parameterName)
- Returns
true if the given parameter exists in the session and is set to true, false otherwise.
Copyright © 2012 Alfresco Software Inc.. All Rights Reserved.