public class OAuth2DataServiceImpl extends Object implements OAuth2DataService
| Constructor and Description |
|---|
OAuth2DataServiceImpl(String jsonLocation,
BeanConverter converter,
String contextroot) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2Code |
getAccessToken(String accessToken)
Retrieves an access token by its value.
|
OAuth2Code |
getAuthorizationCode(String clientId,
String authCode)
Retrieves an authorization code by its value.
|
OAuth2Client |
getClient(String clientId)
Retrieves a pre-registered client by ID.
|
OAuth2Code |
getRefreshToken(String refreshToken)
Retrieves a refresh token by its value.
|
void |
registerAccessToken(String clientId,
OAuth2Code accessToken)
Registers an access token with a client.
|
void |
registerAuthorizationCode(String clientId,
OAuth2Code authCode)
Registers an authorization code with a client.
|
void |
registerRefreshToken(String clientId,
OAuth2Code refreshToken)
Registers a refresh token with a client.
|
void |
unregisterAccessToken(String clientId,
String accessToken)
Unregisters an access token with a client.
|
void |
unregisterAuthorizationCode(String clientId,
String authCode)
Unregisters an authorization code with a client.
|
void |
unregisterRefreshToken(String clientId,
String refreshToken)
Unregisters a refresh token with a client.
|
@Inject public OAuth2DataServiceImpl(String jsonLocation, BeanConverter converter, String contextroot) throws Exception
Exceptionpublic OAuth2Client getClient(String clientId)
OAuth2DataServicegetClient in interface OAuth2DataServiceclientId - identifies the client to retrievepublic OAuth2Code getAuthorizationCode(String clientId, String authCode)
OAuth2DataServicegetAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to getpublic void registerAuthorizationCode(String clientId, OAuth2Code authCode)
OAuth2DataServiceregisterAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the authorization code to register with the clientpublic void unregisterAuthorizationCode(String clientId, String authCode)
OAuth2DataServiceunregisterAuthorizationCode in interface OAuth2DataServiceclientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to unregisterpublic OAuth2Code getAccessToken(String accessToken)
OAuth2DataServicegetAccessToken in interface OAuth2DataServiceaccessToken - is the value of the accessToken to retrievepublic void registerAccessToken(String clientId, OAuth2Code accessToken)
OAuth2DataServiceregisterAccessToken in interface OAuth2DataServiceclientId - identifies the client to register the access token withaccessToken - is the access token to register with the clientpublic void unregisterAccessToken(String clientId, String accessToken)
OAuth2DataServiceunregisterAccessToken in interface OAuth2DataServiceclientId - identifies the client who owns the access tokenaccessToken - is the value of the access token to unregisterpublic OAuth2Code getRefreshToken(String refreshToken)
OAuth2DataServicegetRefreshToken in interface OAuth2DataServicerefreshToken - is the value of the refresh token to retrievepublic void registerRefreshToken(String clientId, OAuth2Code refreshToken)
OAuth2DataServiceregisterRefreshToken in interface OAuth2DataServiceclientId - identifies the client who owns the refresh tokenrefreshToken - is the refresh token to register with the clientpublic void unregisterRefreshToken(String clientId, String refreshToken)
OAuth2DataServiceunregisterRefreshToken in interface OAuth2DataServiceclientId - identifies the client who owns the refresh tokenrefreshToken - is the value of the refresh token to unregisterCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.