public interface OAuth2TokenService
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.common.OAuth2RefreshToken |
findAccessToken(String token)
Find an access token by its string value
|
List<org.springframework.security.oauth2.common.OAuth2RefreshToken> |
findByClientId(String clientId)
Find the list of access tokens associated to a client id
|
List<org.springframework.security.oauth2.common.OAuth2RefreshToken> |
findByClientIdAndUserName(String clientId,
String userName)
Find the list of access tokens by username
|
org.springframework.security.oauth2.common.OAuth2RefreshToken findAccessToken(String token) throws CommonServiceException, CommonServiceRuntimeException
token - The identifier to search onCommonServiceException - catched exception if a logical problem occurs during the executionCommonServiceRuntimeException - runtime exception if a configuration related exception occurList<org.springframework.security.oauth2.common.OAuth2RefreshToken> findByClientIdAndUserName(String clientId, String userName) throws CommonServiceException, CommonServiceRuntimeException
clientId - The client id to search onuserName - The username to search onCommonServiceException - catched exception if a logical problem occurs during the executionCommonServiceRuntimeException - runtime exception if a configuration related exception occurList<org.springframework.security.oauth2.common.OAuth2RefreshToken> findByClientId(String clientId) throws CommonServiceException, CommonServiceRuntimeException
clientId - The client id to search onCommonServiceException - catched exception if a logical problem occurs during the executionCommonServiceRuntimeException - runtime exception if a configuration related exception occurCopyright © 2017 Europeana Foundation + AIT. All rights reserved.