Class ActiveObjectsServiceProviderTokenStore
- java.lang.Object
-
- com.atlassian.bamboo.oauth.serviceprovider.ActiveObjectsServiceProviderTokenStore
-
- All Implemented Interfaces:
com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
public class ActiveObjectsServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Provides an implementation of the OAuth Service Provider token store. That is OAuth tokens that are used to process incoming requests.
-
-
Constructor Summary
Constructors Constructor Description ActiveObjectsServiceProviderTokenStore(SchemaNameSupplier schemaProvider)
-
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)
protected Stream<com.atlassian.oauth.serviceprovider.ServiceProviderToken>
getExpiredTokens()
com.atlassian.oauth.serviceprovider.ServiceProviderToken
put(com.atlassian.oauth.serviceprovider.ServiceProviderToken token)
void
removeAndNotify(String token)
void
removeByConsumer(String consumerKey)
void
removeExpiredSessionsAndNotify()
void
removeExpiredTokensAndNotify()
-
-
-
Constructor Detail
-
ActiveObjectsServiceProviderTokenStore
@Inject public ActiveObjectsServiceProviderTokenStore(SchemaNameSupplier schemaProvider)
-
-
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
-
getExpiredTokens
protected final Stream<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getExpiredTokens() throws com.atlassian.oauth.serviceprovider.StoreException
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeByConsumer
public void removeByConsumer(String consumerKey)
- Specified by:
removeByConsumer
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
-
-