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
Client
clientId
- the client idOAuthServiceException
RequestToken createRequestToken(RequestTokenRegistration reg) throws OAuthServiceException
Client
attempting to access or
modify the resource owner's resourcereg
- RequestTokenRegistrationOAuthServiceException
RequestTokenRegistration
RequestToken getRequestToken(String requestToken) throws OAuthServiceException
RequestToken
requestToken
- the token keyOAuthServiceException
String 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 AccessToken
data
- AuthorizationInputOAuthServiceException
AccessToken createAccessToken(AccessTokenRegistration reg) throws OAuthServiceException
AccessToken
reg
- AccessTokenRegistration
instance which captures
a request token approved by the resource ownerOAuthServiceException
AccessToken getAccessToken(String accessToken) throws OAuthServiceException
AccessToken
accessToken
- the token keyOAuthServiceException
void removeToken(Token token) throws OAuthServiceException
token
- the tokenOAuthServiceException
Apache CXF