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
Constructors Constructor Description CachingServiceProviderTokenStore(org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory, com.atlassian.cache.CacheManager cacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
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
public void removeAndNotify(String token) throws com.atlassian.oauth.serviceprovider.StoreException
- 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
public void removeByConsumer(String consumerKey)
- Specified by:
removeByConsumer
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
-
-