public interface OAuthDataProvider
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
createAccessToken(AccessTokenRegistration reg)
Creates a new
AccessToken |
RequestToken |
createRequestToken(RequestTokenRegistration reg)
Creates a temporarily request token which will capture the
information about the
Client attempting to access or
modify the resource owner's resource |
String |
finalizeAuthorization(AuthorizationInput data)
Sets the verifier confirming the resource owner's agreement for
the
Client to perform the action as represented by
the provided RequestToken. |
AccessToken |
getAccessToken(String accessToken)
Returns the
AccessToken |
Client |
getClient(String clientId)
Returns the previously registered third-party
Client |
RequestToken |
getRequestToken(String requestToken)
Returns the previously registered
RequestToken |
void |
removeToken(Token token)
Removes the token
|
Client getClient(String clientId) throws OAuthServiceException
ClientclientId - the client idOAuthServiceExceptionRequestToken createRequestToken(RequestTokenRegistration reg) throws OAuthServiceException
Client attempting to access or
modify the resource owner's resourcereg - RequestTokenRegistrationOAuthServiceExceptionRequestTokenRegistrationRequestToken getRequestToken(String requestToken) throws OAuthServiceException
RequestTokenrequestToken - the token keyOAuthServiceExceptionString finalizeAuthorization(AuthorizationInput data) throws OAuthServiceException
Client to perform the action as represented by
the provided RequestToken. The runtime will report
this verifier to the client who will exchange it for
a new AccessTokendata - AuthorizationInputOAuthServiceExceptionAccessToken createAccessToken(AccessTokenRegistration reg) throws OAuthServiceException
AccessTokenreg - AccessTokenRegistration instance which captures
a request token approved by the resource ownerOAuthServiceExceptionAccessToken getAccessToken(String accessToken) throws OAuthServiceException
AccessTokenaccessToken - the token keyOAuthServiceExceptionvoid removeToken(Token token) throws OAuthServiceException
token - the tokenOAuthServiceExceptionApache CXF