public class DefaultEncryptingCodeDataProvider extends DefaultEncryptingOAuthDataProvider implements AuthorizationCodeDataProvider
key| Constructor and Description |
|---|
DefaultEncryptingCodeDataProvider(KeyProperties props) |
DefaultEncryptingCodeDataProvider(SecretKey key) |
DefaultEncryptingCodeDataProvider(String algo,
int keySize) |
| 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 |
protected ServerAuthorizationCodeGrant |
doCreateCodeGrant(AuthorizationCodeRegistration reg) |
protected List<String> |
getApprovedScopes(AuthorizationCodeRegistration reg) |
protected String |
getCode(AuthorizationCodeRegistration reg) |
long |
getGrantLifetime() |
protected long |
getIssuedAt() |
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
protected void |
saveAuthorizationGrant(ServerAuthorizationCodeGrant grant) |
void |
setGrantLifetime(long lifetime) |
getAccessToken, getClient, getClients, removeAccessToken, removeClient, revokeAccessToken, revokeRefreshToken, saveAccessToken, saveRefreshToken, setClientconvertScopeToPermissions, createAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doRefreshAccessToken, getPreauthorizedToken, refreshAccessToken, revokeToken, setAccessTokenLifetime, setRefreshTokenLifetimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, revokeTokenpublic DefaultEncryptingCodeDataProvider(String algo, int keySize)
public DefaultEncryptingCodeDataProvider(KeyProperties props)
public DefaultEncryptingCodeDataProvider(SecretKey key)
public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
AuthorizationCodeDataProviderClient requesting the access to
the resource owner's resourcescreateCodeGrant in interface AuthorizationCodeDataProviderreg - information about the client code grant requestOAuthServiceExceptionAuthorizationCodeRegistration,
ServerAuthorizationCodeGrantpublic ServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
AuthorizationCodeDataProviderServerAuthorizationCodeGrantremoveCodeGrant in interface AuthorizationCodeDataProvidercode - the code grantOAuthServiceException - if no grant with this code is availableServerAuthorizationCodeGrantprotected ServerAuthorizationCodeGrant doCreateCodeGrant(AuthorizationCodeRegistration reg) throws OAuthServiceException
OAuthServiceExceptionprotected List<String> getApprovedScopes(AuthorizationCodeRegistration reg)
protected String getCode(AuthorizationCodeRegistration reg)
public long getGrantLifetime()
public void setGrantLifetime(long lifetime)
protected long getIssuedAt()
protected void saveAuthorizationGrant(ServerAuthorizationCodeGrant grant)
Apache CXF