public interface OAuth2DataService
| 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.
|
OAuth2Client getClient(String clientId)
clientId - identifies the client to retrieveOAuth2Client - is the retrieved clientOAuth2Code getAuthorizationCode(String clientId, String authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to getvoid registerAuthorizationCode(String clientId, OAuth2Code authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the authorization code to register with the clientvoid unregisterAuthorizationCode(String clientId, String authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to unregisterOAuth2Code getAccessToken(String accessToken)
accessToken - is the value of the accessToken to retrievevoid registerAccessToken(String clientId, OAuth2Code accessToken)
clientId - identifies the client to register the access token withaccessToken - is the access token to register with the clientvoid unregisterAccessToken(String clientId, String accessToken)
clientId - identifies the client who owns the access tokenaccessToken - is the value of the access token to unregisterOAuth2Code getRefreshToken(String refreshToken)
refreshToken - is the value of the refresh token to retrievevoid registerRefreshToken(String clientId, OAuth2Code refreshToken)
clientId - identifies the client who owns the refresh tokenrefreshToken - is the refresh token to register with the clientCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.