public class CachingServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore delegateStore,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
clearCaches(ClearCacheEvent event) |
void |
destroy() |
com.atlassian.oauth.serviceprovider.ServiceProviderToken |
get(String token) |
Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> |
getAccessTokensForUser(String username) |
void |
onUserRenamed(UserRenamedEvent event) |
com.atlassian.oauth.serviceprovider.ServiceProviderToken |
put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) |
void |
removeAndNotify(String token) |
void |
removeByConsumer(String consumerKey) |
void |
removeExpiredSessionsAndNotify() |
void |
removeExpiredTokensAndNotify() |
public CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore delegateStore, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager)
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
@EventListener public void clearCaches(ClearCacheEvent event)
@EventListener public void onUserRenamed(UserRenamedEvent event)
public com.atlassian.oauth.serviceprovider.ServiceProviderToken get(String token) throws com.atlassian.oauth.serviceprovider.StoreException
get
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
com.atlassian.oauth.serviceprovider.StoreException
public Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getAccessTokensForUser(String username)
getAccessTokensForUser
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
public com.atlassian.oauth.serviceprovider.ServiceProviderToken put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) throws com.atlassian.oauth.serviceprovider.StoreException
put
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
com.atlassian.oauth.serviceprovider.StoreException
public void removeAndNotify(String token) throws com.atlassian.oauth.serviceprovider.StoreException
removeAndNotify
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
com.atlassian.oauth.serviceprovider.StoreException
public void removeExpiredTokensAndNotify() throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredTokensAndNotify
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
com.atlassian.oauth.serviceprovider.StoreException
public void removeExpiredSessionsAndNotify() throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredSessionsAndNotify
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
com.atlassian.oauth.serviceprovider.StoreException
public void removeByConsumer(String consumerKey)
removeByConsumer
in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Copyright © 2002-2018 Atlassian. All Rights Reserved.