@Repository public class JpaOAuth2TokenRepository extends Object implements OAuth2TokenRepository
Constructor and Description |
---|
JpaOAuth2TokenRepository() |
public JpaOAuth2TokenRepository()
public Set<OAuth2AccessTokenEntity> getAllAccessTokens()
getAllAccessTokens
in interface OAuth2TokenRepository
public Set<OAuth2RefreshTokenEntity> getAllRefreshTokens()
getAllRefreshTokens
in interface OAuth2TokenRepository
public OAuth2AccessTokenEntity getAccessTokenByValue(String accessTokenValue)
getAccessTokenByValue
in interface OAuth2TokenRepository
public 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 OAuth2TokenRepository
public OAuth2RefreshTokenEntity getRefreshTokenByValue(String refreshTokenValue)
getRefreshTokenByValue
in interface OAuth2TokenRepository
public 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 OAuth2TokenRepository
public List<OAuth2AccessTokenEntity> getAccessTokensForClient(ClientDetailsEntity client)
getAccessTokensForClient
in interface OAuth2TokenRepository
public List<OAuth2RefreshTokenEntity> getRefreshTokensForClient(ClientDetailsEntity client)
getRefreshTokensForClient
in interface OAuth2TokenRepository
public Set<OAuth2AccessTokenEntity> getAllExpiredAccessTokens()
getAllExpiredAccessTokens
in interface OAuth2TokenRepository
public Set<OAuth2AccessTokenEntity> getAllExpiredAccessTokens(PageCriteria pageCriteria)
getAllExpiredAccessTokens
in interface OAuth2TokenRepository
public Set<OAuth2RefreshTokenEntity> getAllExpiredRefreshTokens()
getAllExpiredRefreshTokens
in interface OAuth2TokenRepository
public Set<OAuth2RefreshTokenEntity> getAllExpiredRefreshTokens(PageCriteria pageCriteria)
getAllExpiredRefreshTokens
in interface OAuth2TokenRepository
public Set<OAuth2AccessTokenEntity> getAccessTokensForResourceSet(ResourceSet rs)
getAccessTokensForResourceSet
in interface OAuth2TokenRepository
@Transactional(value="defaultTransactionManager") public void clearDuplicateAccessTokens()
OAuth2TokenRepository
clearDuplicateAccessTokens
in interface OAuth2TokenRepository
@Transactional(value="defaultTransactionManager") public void clearDuplicateRefreshTokens()
OAuth2TokenRepository
clearDuplicateRefreshTokens
in interface OAuth2TokenRepository
public List<OAuth2AccessTokenEntity> getAccessTokensForApprovedSite(ApprovedSite approvedSite)
getAccessTokensForApprovedSite
in interface OAuth2TokenRepository
Copyright © 2018. All rights reserved.