public class BasicOAuthProviderImpl extends Object implements org.gatein.api.oauth.OAuthProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.gatein.common.logging.Logger |
log |
| Constructor and Description |
|---|
BasicOAuthProviderImpl(OAuthProviderType internalOAuthProvider,
SocialNetworkService socialNetworkService) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAuthorizedSocialApiObject(org.gatein.api.oauth.AccessToken accessToken,
Class<T> socialApiObjectType) |
String |
getFriendlyName() |
protected AccessTokenContext |
getInternalAccessTokenContext(org.gatein.api.oauth.AccessToken accessToken) |
protected OAuthProviderType |
getInternalOAuthProvider() |
String |
getKey() |
org.gatein.api.oauth.AccessToken |
loadAccessToken(String username) |
void |
removeAccessToken(String username) |
void |
revokeToken(org.gatein.api.oauth.AccessToken accessToken) |
void |
saveAccessToken(String username,
org.gatein.api.oauth.AccessToken accessToken) |
void |
startOAuthWorkflow(String neededCustomScope) |
org.gatein.api.oauth.AccessToken |
validateTokenAndUpdateScopes(org.gatein.api.oauth.AccessToken accessToken) |
public BasicOAuthProviderImpl(OAuthProviderType internalOAuthProvider, SocialNetworkService socialNetworkService)
public String getKey()
getKey in interface org.gatein.api.oauth.OAuthProviderpublic String getFriendlyName()
getFriendlyName in interface org.gatein.api.oauth.OAuthProviderpublic org.gatein.api.oauth.AccessToken loadAccessToken(String username) throws org.gatein.api.oauth.exception.OAuthApiException
loadAccessToken in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionpublic void saveAccessToken(String username, org.gatein.api.oauth.AccessToken accessToken) throws org.gatein.api.oauth.exception.OAuthApiException
saveAccessToken in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionpublic void removeAccessToken(String username) throws org.gatein.api.oauth.exception.OAuthApiException
removeAccessToken in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionpublic void startOAuthWorkflow(String neededCustomScope) throws org.gatein.api.oauth.exception.OAuthApiException, IOException
startOAuthWorkflow in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionIOExceptionpublic org.gatein.api.oauth.AccessToken validateTokenAndUpdateScopes(org.gatein.api.oauth.AccessToken accessToken)
throws org.gatein.api.oauth.exception.OAuthApiException
validateTokenAndUpdateScopes in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionpublic void revokeToken(org.gatein.api.oauth.AccessToken accessToken)
throws org.gatein.api.oauth.exception.OAuthApiException
revokeToken in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionpublic <T> T getAuthorizedSocialApiObject(org.gatein.api.oauth.AccessToken accessToken,
Class<T> socialApiObjectType)
throws org.gatein.api.oauth.exception.OAuthApiException
getAuthorizedSocialApiObject in interface org.gatein.api.oauth.OAuthProviderorg.gatein.api.oauth.exception.OAuthApiExceptionprotected OAuthProviderType getInternalOAuthProvider()
protected AccessTokenContext getInternalAccessTokenContext(org.gatein.api.oauth.AccessToken accessToken) throws org.gatein.api.oauth.exception.OAuthApiException
org.gatein.api.oauth.exception.OAuthApiExceptionCopyright © 2016 JBoss by Red Hat. All Rights Reserved.