com.atlassian.jira.oauth.serviceprovider
Class CachingServiceProviderTokenStore

java.lang.Object
  extended by com.atlassian.jira.oauth.serviceprovider.CachingServiceProviderTokenStore
All Implemented Interfaces:
com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore

public class CachingServiceProviderTokenStore
extends Object
implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore

Caching Service provider token store, responsible for caching OAuth service provider authentication tokens.

Since:
v4.0

Constructor Summary
CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore delegateStore)
           
 
Method Summary
 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 remove(String token)
           
 void removeByConsumer(String consumerKey)
           
 void removeExpiredTokens()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingServiceProviderTokenStore

public CachingServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore delegateStore)
Method Detail

get

public com.atlassian.oauth.serviceprovider.ServiceProviderToken get(String token)
                                                             throws com.atlassian.oauth.serviceprovider.StoreException
Specified by:
get in interface com.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 interface com.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 interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Throws:
com.atlassian.oauth.serviceprovider.StoreException

remove

public void remove(String token)
            throws com.atlassian.oauth.serviceprovider.StoreException
Specified by:
remove in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Throws:
com.atlassian.oauth.serviceprovider.StoreException

removeExpiredTokens

public void removeExpiredTokens()
                         throws com.atlassian.oauth.serviceprovider.StoreException
Specified by:
removeExpiredTokens in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Throws:
com.atlassian.oauth.serviceprovider.StoreException

removeByConsumer

public void removeByConsumer(String consumerKey)
Specified by:
removeByConsumer in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore


Copyright © 2002-2012 Atlassian. All Rights Reserved.