@Service public class BridgeApiTokenStoreService extends org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore implements org.springframework.security.oauth2.provider.token.TokenStore, OAuth2TokenService
| Constructor and Description |
|---|
BridgeApiTokenStoreService() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.oauth2.common.OAuth2RefreshToken |
convertToRefreshTocken(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken) |
protected List<org.springframework.security.oauth2.common.OAuth2RefreshToken> |
convertToRefreshToken(Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> accessTokens) |
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
|
clear, findTokensByClientId, findTokensByClientIdAndUserName, getAccessToken, getAccessTokenCount, getExpiryTokenCount, getFlushInterval, getRefreshTokenCount, readAccessToken, readAuthentication, readAuthentication, readAuthenticationForRefreshToken, readAuthenticationForRefreshToken, readRefreshToken, removeAccessToken, removeAccessToken, removeAccessTokenUsingRefreshToken, removeRefreshToken, removeRefreshToken, setAuthenticationKeyGenerator, setFlushInterval, storeAccessToken, storeRefreshTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindTokensByClientId, findTokensByClientIdAndUserName, getAccessToken, readAccessToken, readAuthentication, readAuthentication, readAuthenticationForRefreshToken, readRefreshToken, removeAccessToken, removeAccessTokenUsingRefreshToken, removeRefreshToken, storeAccessToken, storeRefreshTokenpublic org.springframework.security.oauth2.common.OAuth2RefreshToken findAccessToken(String token) throws CommonServiceException, CommonServiceRuntimeException
OAuth2TokenServicefindAccessToken in interface OAuth2TokenServicetoken - The identifier to search onCommonServiceException - catched exception if a logical problem occurs during the executionCommonServiceRuntimeException - runtime exception if a configuration related exception occurprotected org.springframework.security.oauth2.common.OAuth2RefreshToken convertToRefreshTocken(org.springframework.security.oauth2.common.OAuth2AccessToken accessToken)
public List<org.springframework.security.oauth2.common.OAuth2RefreshToken> findByClientIdAndUserName(String clientId, String userName) throws CommonServiceException, CommonServiceRuntimeException
OAuth2TokenServicefindByClientIdAndUserName in interface OAuth2TokenServiceclientId - 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 occurpublic List<org.springframework.security.oauth2.common.OAuth2RefreshToken> findByClientId(String clientId) throws CommonServiceException, CommonServiceRuntimeException
OAuth2TokenServicefindByClientId in interface OAuth2TokenServiceclientId - The client id to search onCommonServiceException - catched exception if a logical problem occurs during the executionCommonServiceRuntimeException - runtime exception if a configuration related exception occurprotected List<org.springframework.security.oauth2.common.OAuth2RefreshToken> convertToRefreshToken(Collection<org.springframework.security.oauth2.common.OAuth2AccessToken> accessTokens)
Copyright © 2017 Europeana Foundation + AIT. All rights reserved.