Class CachingServiceProviderTokenStore
java.lang.Object
com.atlassian.bamboo.oauth.serviceprovider.CachingServiceProviderTokenStore
- All Implemented Interfaces:
com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
@Component
public class CachingServiceProviderTokenStore
extends Object
implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Caching Service provider token store, responsible for caching OAuth service provider authentication tokens.
-
Constructor Summary
ConstructorDescriptionCachingServiceProviderTokenStore
(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.oauth.serviceprovider.ServiceProviderToken
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
void
-
Constructor Details
-
CachingServiceProviderTokenStore
@Inject public CachingServiceProviderTokenStore(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
get
public com.atlassian.oauth.serviceprovider.ServiceProviderToken get(String token) throws com.atlassian.oauth.serviceprovider.StoreException - Specified by:
get
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
getAccessTokensForUser
public Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getAccessTokensForUser(String username) - Specified by:
getAccessTokensForUser
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
-
put
public com.atlassian.oauth.serviceprovider.ServiceProviderToken put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) throws com.atlassian.oauth.serviceprovider.StoreException - Specified by:
put
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeAndNotify
- Specified by:
removeAndNotify
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeExpiredTokensAndNotify
public void removeExpiredTokensAndNotify() throws com.atlassian.oauth.serviceprovider.StoreException- Specified by:
removeExpiredTokensAndNotify
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeExpiredSessionsAndNotify
public void removeExpiredSessionsAndNotify() throws com.atlassian.oauth.serviceprovider.StoreException- Specified by:
removeExpiredSessionsAndNotify
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeByConsumer
- Specified by:
removeByConsumer
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
-