public interface AuthorizationCodeDataProvider extends OAuthDataProvider
OAuthDataProvider
which
can additionally persist the authorization code grant informationModifier and Type | Method and Description |
---|---|
ServerAuthorizationCodeGrant |
createCodeGrant(AuthorizationCodeRegistration reg)
Creates a temporarily code grant which will capture the
information about the
Client requesting the access to
the resource owner's resources |
List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client client,
UserSubject subject)
Return the list of code grants associated with a given client
|
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
convertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, revokeToken
ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
Client
requesting the access to
the resource owner's resourcesreg
- information about the client code grant requestOAuthServiceException
AuthorizationCodeRegistration
,
ServerAuthorizationCodeGrant
ServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
ServerAuthorizationCodeGrant
code
- the code grantOAuthServiceException
- if no grant with this code is availableServerAuthorizationCodeGrant
List<ServerAuthorizationCodeGrant> getCodeGrants(Client client, UserSubject subject) throws OAuthServiceException
client
- the clientsubject
- the user subject, can be nullOAuthServiceException
ServerAuthorizationCodeGrant
Apache CXF