public class JPACMTCodeDataProvider extends JPACodeDataProvider
JPAOAuthDataProvider.EntityManagerOperation<T>
Constructor and Description |
---|
JPACMTCodeDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.EntityTransaction |
beginIfNeeded(javax.persistence.EntityManager em)
Doesn't do anything, beginning tx is handled by container.
|
protected void |
closeIfNeeded(javax.persistence.EntityManager em)
Doesn't do anything, em lifecycle is handled by container.
|
protected void |
commitIfNeeded(javax.persistence.EntityManager em)
Doesn't do anything, commit is handled by container.
|
protected javax.persistence.EntityManager |
getEntityManager()
Returns the entityManaged used for the current operation.
|
protected void |
lockRefreshTokenForUpdate(RefreshToken refreshToken) |
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
void |
setPessimisticLockTimeout(int pessimisticLockTimeout) |
void |
setUseJpaLockForExistingRefreshToken(boolean useJpaLockForExistingRefreshToken) |
protected RefreshToken |
updateExistingRefreshToken(RefreshToken rt,
ServerAccessToken at) |
createCodeGrant, doCreateCodeGrant, doRemoveClient, getCodeGrants, getCodesQuery, removeClientCodeGrants, removeClientCodeGrants, removeCodeGrant, saveCodeGrant, setCodeLifetime
doCreateAccessToken, doGetClient, doRevokeAccessToken, doRevokeRefreshToken, execute, executeInTransaction, flushIfNeeded, getAccessToken, getAccessTokens, getClients, getClientsQuery, getRefreshToken, getRefreshTokens, getRefreshTokensQuery, getTokensQuery, linkRefreshTokenToAccessToken, persistEntity, removeEntity, saveAccessToken, saveRefreshToken, setClient, setEntityManagerFactory
authenticateUnregisteredClient, checkRequestedScopes, close, convertScopeToPermissions, convertSingleScopeToPermission, createAccessToken, createClientCredentialsClient, createJwtAccessToken, createNewAccessToken, createNewRefreshToken, doCreateNewRefreshToken, doRefreshAccessToken, getClient, getCurrentClientSecret, getCurrentRequestedGrantType, getCurrentTokenRequestParams, getDefaultScopes, getInvisibleToClientScopes, getJwtAccessTokenClaimMap, getJwtAccessTokenProducer, getMessageContext, getPermissionMap, getPreauthorizedToken, getRequiredScopes, handleLinkedRefreshToken, init, isClientMatched, isRecycleRefreshTokens, isRefreshTokenSupported, isSupportPreauthorizedTokens, isTokenMatched, isUseJwtFormatForAccessTokens, linkAccessTokenToRefreshToken, processJwtAccessToken, refreshAccessToken, removeClient, removeClientTokens, revokeAccessToken, revokeAccessTokens, revokeRefreshToken, revokeToken, setAccessTokenLifetime, setAuthenticationStrategy, setClients, setDefaultScopes, setInvisibleToClientScopes, setJwtAccessTokenClaimMap, setJwtAccessTokenProducer, setMessageContext, setPermissionMap, setRecycleRefreshTokens, setRefreshTokenLifetime, setRequiredScopes, setSupportedScopes, setSupportPreauthorizedTokens, setUseJwtFormatForAccessTokens, unlinkRefreshAccessToken, updateRefreshToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertScopeToPermissions, createAccessToken, getAccessToken, getAccessTokens, getClient, getPreauthorizedToken, getRefreshTokens, refreshAccessToken, revokeToken
protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class JPAOAuthDataProvider
public void setEntityManager(javax.persistence.EntityManager entityManager)
protected javax.persistence.EntityTransaction beginIfNeeded(javax.persistence.EntityManager em)
beginIfNeeded
in class JPAOAuthDataProvider
protected void commitIfNeeded(javax.persistence.EntityManager em)
commitIfNeeded
in class JPAOAuthDataProvider
protected void closeIfNeeded(javax.persistence.EntityManager em)
closeIfNeeded
in class JPAOAuthDataProvider
protected RefreshToken updateExistingRefreshToken(RefreshToken rt, ServerAccessToken at)
updateExistingRefreshToken
in class AbstractOAuthDataProvider
protected void lockRefreshTokenForUpdate(RefreshToken refreshToken)
public void setPessimisticLockTimeout(int pessimisticLockTimeout)
public void setUseJpaLockForExistingRefreshToken(boolean useJpaLockForExistingRefreshToken)
Apache CXF