|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OAuthDataProvider
OAuth provider responsible for persisting the information about OAuth consumers, request and access tokens.
Method Summary | |
---|---|
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 |
Method Detail |
---|
Client getClient(String clientId) throws OAuthServiceException
Client
clientId
- the client id
OAuthServiceException
RequestToken createRequestToken(RequestTokenRegistration reg) throws OAuthServiceException
Client
attempting to access or
modify the resource owner's resource
reg
- RequestTokenRegistration
OAuthServiceException
RequestTokenRegistration
RequestToken getRequestToken(String requestToken) throws OAuthServiceException
RequestToken
requestToken
- the token key
OAuthServiceException
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
- AuthorizationInput
OAuthServiceException
AccessToken createAccessToken(AccessTokenRegistration reg) throws OAuthServiceException
AccessToken
reg
- AccessTokenRegistration
instance which captures
a request token approved by the resource owner
OAuthServiceException
AccessToken getAccessToken(String accessToken) throws OAuthServiceException
AccessToken
accessToken
- the token key
OAuthServiceException
void removeToken(Token token) throws OAuthServiceException
token
- the token
OAuthServiceException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |