@Repository public class JpaOAuth2TokenRepository extends Object implements OAuth2TokenRepository
| Constructor and Description |
|---|
JpaOAuth2TokenRepository() |
public JpaOAuth2TokenRepository()
public Set<OAuth2AccessTokenEntity> getAllAccessTokens()
getAllAccessTokens in interface OAuth2TokenRepositorypublic Set<OAuth2RefreshTokenEntity> getAllRefreshTokens()
getAllRefreshTokens in interface OAuth2TokenRepositorypublic OAuth2AccessTokenEntity getAccessTokenByValue(String accessTokenValue)
getAccessTokenByValue in interface OAuth2TokenRepositorypublic OAuth2AccessTokenEntity getAccessTokenById(Long id)
getAccessTokenById in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public OAuth2AccessTokenEntity saveAccessToken(OAuth2AccessTokenEntity token)
saveAccessToken in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void removeAccessToken(OAuth2AccessTokenEntity accessToken)
removeAccessToken in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void clearAccessTokensForRefreshToken(OAuth2RefreshTokenEntity refreshToken)
clearAccessTokensForRefreshToken in interface OAuth2TokenRepositorypublic OAuth2RefreshTokenEntity getRefreshTokenByValue(String refreshTokenValue)
getRefreshTokenByValue in interface OAuth2TokenRepositorypublic OAuth2RefreshTokenEntity getRefreshTokenById(Long id)
getRefreshTokenById in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public OAuth2RefreshTokenEntity saveRefreshToken(OAuth2RefreshTokenEntity refreshToken)
saveRefreshToken in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void removeRefreshToken(OAuth2RefreshTokenEntity refreshToken)
removeRefreshToken in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void clearTokensForClient(ClientDetailsEntity client)
clearTokensForClient in interface OAuth2TokenRepositorypublic List<OAuth2AccessTokenEntity> getAccessTokensForClient(ClientDetailsEntity client)
getAccessTokensForClient in interface OAuth2TokenRepositorypublic List<OAuth2RefreshTokenEntity> getRefreshTokensForClient(ClientDetailsEntity client)
getRefreshTokensForClient in interface OAuth2TokenRepositorypublic Set<OAuth2AccessTokenEntity> getAccessTokensByUserName(String name)
getAccessTokensByUserName in interface OAuth2TokenRepositorypublic Set<OAuth2RefreshTokenEntity> getRefreshTokensByUserName(String name)
getRefreshTokensByUserName in interface OAuth2TokenRepositorypublic Set<OAuth2AccessTokenEntity> getAllExpiredAccessTokens()
getAllExpiredAccessTokens in interface OAuth2TokenRepositorypublic Set<OAuth2AccessTokenEntity> getAllExpiredAccessTokens(PageCriteria pageCriteria)
getAllExpiredAccessTokens in interface OAuth2TokenRepositorypublic Set<OAuth2RefreshTokenEntity> getAllExpiredRefreshTokens()
getAllExpiredRefreshTokens in interface OAuth2TokenRepositorypublic Set<OAuth2RefreshTokenEntity> getAllExpiredRefreshTokens(PageCriteria pageCriteria)
getAllExpiredRefreshTokens in interface OAuth2TokenRepositorypublic Set<OAuth2AccessTokenEntity> getAccessTokensForResourceSet(ResourceSet rs)
getAccessTokensForResourceSet in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void clearDuplicateAccessTokens()
clearDuplicateAccessTokens in interface OAuth2TokenRepository@Transactional(value="defaultTransactionManager") public void clearDuplicateRefreshTokens()
clearDuplicateRefreshTokens in interface OAuth2TokenRepositorypublic List<OAuth2AccessTokenEntity> getAccessTokensForApprovedSite(ApprovedSite approvedSite)
getAccessTokensForApprovedSite in interface OAuth2TokenRepositoryCopyright © 2022. All rights reserved.