public interface AuthorizationCodeDataProvider extends OAuthDataProvider
OAuthDataProvider which
can additionally persist the authorization code grant information| Modifier 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, revokeTokenServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
Client requesting the access to
the resource owner's resourcesreg - information about the client code grant requestOAuthServiceExceptionAuthorizationCodeRegistration,
ServerAuthorizationCodeGrantServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
ServerAuthorizationCodeGrantcode - the code grantOAuthServiceException - if no grant with this code is availableServerAuthorizationCodeGrantApache CXF