@Repository public interface AccessTokenRepository extends org.springframework.data.repository.CrudRepository<AccessToken,Long>
| Modifier and Type | Method and Description |
|---|---|
Number |
countByUniqueResourceOwnerIdAndClientId(long clientId) |
AccessToken |
findByIdAndResourceOwnerId(Long id,
String owner) |
AccessToken |
findByRefreshToken(String refreshToken) |
List<AccessToken> |
findByResourceOwnerId(String resourceOwnerId) |
List<AccessToken> |
findByResourceOwnerIdAndClient(String resourceOwnerId,
Client client) |
AccessToken |
findByToken(String token) |
AccessToken findByToken(String token)
AccessToken findByRefreshToken(String refreshToken)
List<AccessToken> findByResourceOwnerIdAndClient(String resourceOwnerId, Client client)
List<AccessToken> findByResourceOwnerId(String resourceOwnerId)
AccessToken findByIdAndResourceOwnerId(Long id, String owner)
@Query(value="select count(distinct resourceOwnerId) from accesstoken where client_id = ?1",
nativeQuery=true)
Number countByUniqueResourceOwnerIdAndClientId(long clientId)
Copyright © 2012–2013 SURFnet bv, The Netherlands. All rights reserved.