|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OAuth2DataService
Services to support the management of data for the OAuth 2.0 specification. Includes management of clients, authorization codes, access tokens, and refresh tokens. TODO (Eric): client registration services
| Method Summary | |
|---|---|
OAuth2Code |
getAccessToken(java.lang.String accessToken)
Retrieves an access token by its value. |
OAuth2Code |
getAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
Retrieves an authorization code by its value. |
OAuth2Client |
getClient(java.lang.String clientId)
Retrieves a pre-registered client by ID. |
OAuth2Code |
getRefreshToken(java.lang.String refreshToken)
Retrieves a refresh token by its value. |
void |
registerAccessToken(java.lang.String clientId,
OAuth2Code accessToken)
Registers an access token with a client. |
void |
registerAuthorizationCode(java.lang.String clientId,
OAuth2Code authCode)
Registers an authorization code with a client. |
void |
registerRefreshToken(java.lang.String clientId,
OAuth2Code refreshToken)
Registers a refresh token with a client. |
void |
unregisterAccessToken(java.lang.String clientId,
java.lang.String accessToken)
Unregisters an access token with a client. |
void |
unregisterAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
Unregisters an authorization code with a client. |
void |
unregisterRefreshToken(java.lang.String clientId,
java.lang.String refreshToken)
Unregisters a refresh token with a client. |
| Method Detail |
|---|
OAuth2Client getClient(java.lang.String clientId)
clientId - identifies the client to retrieveOAuth2Client - is the retrieved client
OAuth2Code getAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to get
void registerAuthorizationCode(java.lang.String clientId,
OAuth2Code authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the authorization code to register with the client
void unregisterAuthorizationCode(java.lang.String clientId,
java.lang.String authCode)
clientId - identifies the client who owns the authorization codeauthCode - is the value of the authorization code to unregisterOAuth2Code getAccessToken(java.lang.String accessToken)
accessToken - is the value of the accessToken to retrieve
void registerAccessToken(java.lang.String clientId,
OAuth2Code accessToken)
clientId - identifies the client to register the access token withaccessToken - is the access token to register with the client
void unregisterAccessToken(java.lang.String clientId,
java.lang.String accessToken)
clientId - identifies the client who owns the access tokenaccessToken - is the value of the access token to unregisterOAuth2Code getRefreshToken(java.lang.String refreshToken)
refreshToken - is the value of the refresh token to retrieve
void registerRefreshToken(java.lang.String clientId,
OAuth2Code refreshToken)
clientId - identifies the client who owns the refresh tokenrefreshToken - is the refresh token to register with the client
void unregisterRefreshToken(java.lang.String clientId,
java.lang.String refreshToken)
clientId - identifies the client who owns the refresh tokenrefreshToken - is the value of the refresh token to unregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||