public class DefaultEncryptingCodeDataProvider extends DefaultEncryptingOAuthDataProvider implements AuthorizationCodeDataProvider
key| Constructor and Description |
|---|
DefaultEncryptingCodeDataProvider(org.apache.cxf.common.util.crypto.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) |
ServerAuthorizationCodeGrant |
getCodeGrant(String code) |
List<ServerAuthorizationCodeGrant> |
getCodeGrants(Client c) |
long |
getGrantLifetime() |
protected long |
getIssuedAt() |
Client |
removeClient(String clientId) |
protected void |
removeClientCodeGrants(Client c) |
ServerAuthorizationCodeGrant |
removeCodeGrant(String code)
Returns the previously registered
ServerAuthorizationCodeGrant |
protected void |
saveAuthorizationGrant(ServerAuthorizationCodeGrant grant) |
void |
setGrantLifetime(long lifetime) |
getAccessToken, getAccessTokens, getClient, getClients, getRefreshToken, getRefreshTokens, revokeAccessToken, revokeRefreshToken, saveAccessToken, saveRefreshToken, setClientclose, convertScopeToPermissions, createAccessToken, createNewAccessToken, createNewRefreshToken, doCreateAccessToken, doCreateNewRefreshToken, doRefreshAccessToken, getMessageContext, getPermissionMap, getPreauthorizedToken, handleLinkedRefreshToken, init, isRefreshTokenSupported, refreshAccessToken, removeAccessToken, removeClientTokens, revokeAccessTokens, revokeToken, setAccessTokenLifetime, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setScopes, unlinkRefreshAccessToken, updateRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertScopeToPermissions, createAccessToken, getAccessToken, getClient, getPreauthorizedToken, refreshAccessToken, removeAccessToken, revokeTokenpublic DefaultEncryptingCodeDataProvider(String algo, int keySize)
public DefaultEncryptingCodeDataProvider(org.apache.cxf.common.util.crypto.KeyProperties props)
public DefaultEncryptingCodeDataProvider(SecretKey key)
public Client removeClient(String clientId)
removeClient in interface ClientRegistrationProviderremoveClient in class DefaultEncryptingOAuthDataProviderprotected void removeClientCodeGrants(Client c)
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 List<ServerAuthorizationCodeGrant> getCodeGrants(Client c)
public ServerAuthorizationCodeGrant removeCodeGrant(String code) throws OAuthServiceException
AuthorizationCodeDataProviderServerAuthorizationCodeGrantremoveCodeGrant in interface AuthorizationCodeDataProvidercode - the code grantOAuthServiceException - if no grant with this code is availableServerAuthorizationCodeGrantpublic ServerAuthorizationCodeGrant getCodeGrant(String code) throws OAuthServiceException
OAuthServiceExceptionprotected 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