@Component public class CachingServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Constructor and Description |
---|
CachingServiceProviderTokenStore(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.oauth.serviceprovider.ServiceProviderToken |
get(String token) |
Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> |
getAccessTokensForUser(String username) |
com.atlassian.oauth.serviceprovider.ServiceProviderToken |
put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) |
void |
removeAndNotify(String token) |
void |
removeByConsumer(String consumerKey) |
void |
removeExpiredSessionsAndNotify() |
void |
removeExpiredTokensAndNotify() |
@Inject public CachingServiceProviderTokenStore(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.atlassian.cache.CacheManager cacheManager)
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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.