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 |
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
convertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, 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
Apache CXF