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 |
List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client c,
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, 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 availableServerAuthorizationCodeGrantList<ServerAuthorizationCodeGrant> getCodeGrants(Client c, UserSubject subject) throws OAuthServiceException
client - the clientsubject - the user subject, can be nullOAuthServiceExceptionServerAuthorizationCodeGrantApache CXF