public class OAuth2AuthenticationProviderImpl extends AuthenticationProviderImpl implements OAuthAuthenticationProvider, OAuthConstant
cmisSession, session
PUBLIC_API_HOSTNAME, PUBLIC_API_OAUTH_AUTHORIZE_PATH, PUBLIC_API_OAUTH_AUTHORIZE_URL, PUBLIC_API_OAUTH_DEFAULT_CALLBACK, PUBLIC_API_OAUTH_TOKEN_PATH, PUBLIC_API_OAUTH_TOKEN_URL
Constructor and Description |
---|
OAuth2AuthenticationProviderImpl(OAuthData oauthData) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken() |
Map<String,List<String>> |
getHTTPHeaders()
Return the list of HTTTP Header that must be add to each HTTP request
between the client and server.
|
OAuthData |
getOAuthData() |
String |
getRefreshToken() |
OAuthData |
refreshToken(AlfrescoSession session) |
void |
setOAuthData(OAuthData data) |
getHTTPHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHTTPHeaders
public OAuth2AuthenticationProviderImpl(OAuthData oauthData)
public Map<String,List<String>> getHTTPHeaders()
AuthenticationProvider
getHTTPHeaders
in interface AuthenticationProvider
getHTTPHeaders
in class AuthenticationProviderImpl
public String getAccessToken()
getAccessToken
in interface OAuthAuthenticationProvider
public String getRefreshToken()
getRefreshToken
in interface OAuthAuthenticationProvider
public OAuthData refreshToken(AlfrescoSession session)
refreshToken
in interface OAuthAuthenticationProvider
public void setOAuthData(OAuthData data)
setOAuthData
in interface OAuthAuthenticationProvider
public OAuthData getOAuthData()
getOAuthData
in interface OAuthAuthenticationProvider
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.