|
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 | |
---|---|
List<OAuthPermission> |
convertScopeToPermissions(Client client,
List<String> requestedScope)
Converts the requested scope to the list of permissions |
ServerAccessToken |
createAccessToken(AccessTokenRegistration accessToken)
Create access token |
ServerAccessToken |
getAccessToken(String accessToken)
Get access token |
Client |
getClient(String clientId)
Returns the previously registered third-party Client |
ServerAccessToken |
getPreauthorizedToken(Client client,
UserSubject subject,
String grantType)
Get preauthorized access token |
ServerAccessToken |
refreshAccessToken(String clientId,
String refreshToken)
Refresh access token |
void |
removeAccessToken(ServerAccessToken accessToken)
Removes the token |
Method Detail |
---|
Client getClient(String clientId) throws OAuthServiceException
Client
clientId
- the client id
OAuthServiceException
ServerAccessToken createAccessToken(AccessTokenRegistration accessToken) throws OAuthServiceException
accessToken
- the token registration info
OAuthServiceException
ServerAccessToken getAccessToken(String accessToken) throws OAuthServiceException
accessToken
- the token key
OAuthServiceException
ServerAccessToken getPreauthorizedToken(Client client, UserSubject subject, String grantType) throws OAuthServiceException
client
- Clientsubject
- End User subject
OAuthServiceException
ServerAccessToken refreshAccessToken(String clientId, String refreshToken) throws OAuthServiceException
clientId
- the client idrefreshToken
- refresh token key
OAuthServiceException
void removeAccessToken(ServerAccessToken accessToken) throws OAuthServiceException
accessToken
- the token
OAuthServiceException
List<OAuthPermission> convertScopeToPermissions(Client client, List<String> requestedScope)
requestedScope
-
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |