public class CMISOAuthAuthenticationProvider
extends org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider
| Constructor and Description |
|---|
CMISOAuthAuthenticationProvider(String accessToken)
Create new Alfresco CMISAuthenticationProvider
|
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
createBasicAuthHeaderValue(String username,
String password)
Creates a basic authentication header value from a username and a password.
|
protected Map<String,List<String>> |
getFixedHeaders()
Returns the HTTP headers that are sent with all requests.
|
Map<String,List<String>> |
getHTTPHeaders(String url) |
Element |
getSOAPHeaders(Object portObject) |
protected boolean |
isTrue(String parameterName)
Returns
true if the given parameter exists in the session and is set to true, false otherwise. |
void |
putResponseHeaders(String url,
int statusCode,
Map<String,List<String>> headers) |
void |
setSession(org.apache.chemistry.opencmis.client.bindings.spi.BindingSession session) |
public CMISOAuthAuthenticationProvider(String accessToken)
accessToken - - the Api access Tokenpublic void setSession(org.apache.chemistry.opencmis.client.bindings.spi.BindingSession session)
setSession in interface org.apache.chemistry.opencmis.client.bindings.spi.SessionAwareAuthenticationProvidersetSession in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProviderpublic Map<String,List<String>> getHTTPHeaders(String url)
getHTTPHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvidergetHTTPHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProviderpublic void putResponseHeaders(String url, int statusCode, Map<String,List<String>> headers)
putResponseHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProviderputResponseHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProviderpublic Element getSOAPHeaders(Object portObject)
getSOAPHeaders in interface org.apache.chemistry.opencmis.commons.spi.AuthenticationProvidergetSOAPHeaders in class org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProviderprotected Map<String,List<String>> getFixedHeaders()
protected List<String> createBasicAuthHeaderValue(String username, String password)
protected boolean isTrue(String parameterName)
true if the given parameter exists in the session and is set to true, false otherwise.Copyright © 2015 Alfresco Software Inc.. All Rights Reserved.