public class ActiveObjectsServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Constructor and Description |
---|
ActiveObjectsServiceProviderTokenStore(SchemaNameSupplier schemaProvider) |
Modifier and Type | Method and 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() |
@Inject public ActiveObjectsServiceProviderTokenStore(SchemaNameSupplier schemaProvider)
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
protected final Stream<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getExpiredTokens() throws com.atlassian.oauth.serviceprovider.StoreException
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.