@Repository public interface AccessTokenRepository extends org.springframework.data.jpa.repository.JpaRepository<AccessToken,String>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByAuthenticationId(String key) |
void |
deleteByRefreshToken(String refreshToken) |
AccessToken |
findByAuthenticationId(String key) |
List<AccessToken> |
findByClientId(String clientId) |
List<AccessToken> |
findByClientIdAndUsername(String clientId,
String username) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllAccessToken findByAuthenticationId(String key)
@Modifying @Query(value="delete from AccessToken at where at.refreshToken = ?1") void deleteByRefreshToken(String refreshToken)
List<AccessToken> findByClientId(String clientId)
List<AccessToken> findByClientIdAndUsername(String clientId, String username)
@Modifying @Query(value="delete from AccessToken at where at.authenticationId = ?1") void deleteByAuthenticationId(String key)
Copyright © 2017 Global Crop Diversity Trust. All rights reserved.