public class OfBizServiceProviderTokenStore extends Object implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SET_KEY |
static String |
TABLE |
| Constructor and Description |
|---|
OfBizServiceProviderTokenStore(OfBizDelegator delegator,
UserUtil userUtil,
com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore,
com.atlassian.event.api.EventPublisher eventPublisher,
JiraPropertySetFactory propertySetFactory,
UserKeyService userKeyService) |
OfBizServiceProviderTokenStore(OfBizDelegator delegator,
UserUtil userUtil,
com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore,
JiraPropertySetFactory propertySetFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
UserKeyService userKeyService,
com.atlassian.oauth.serviceprovider.Clock clock) |
| Modifier and Type | Method and 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) |
protected com.atlassian.oauth.serviceprovider.ServiceProviderToken |
remove(String token) |
void |
removeAndNotify(String token) |
void |
removeByConsumer(String consumerKey) |
protected void |
removeByIds(List<Long> idsToRemove) |
protected void |
removeExpiredSessions() |
void |
removeExpiredSessionsAndNotify() |
protected List<com.atlassian.oauth.serviceprovider.ServiceProviderToken> |
removeExpiredTokens() |
void |
removeExpiredTokensAndNotify() |
public static final String TABLE
public static final String PROPERTY_SET_KEY
public OfBizServiceProviderTokenStore(OfBizDelegator delegator, UserUtil userUtil, com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore, com.atlassian.event.api.EventPublisher eventPublisher, JiraPropertySetFactory propertySetFactory, UserKeyService userKeyService)
public OfBizServiceProviderTokenStore(OfBizDelegator delegator, UserUtil userUtil, com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore, JiraPropertySetFactory propertySetFactory, com.atlassian.event.api.EventPublisher eventPublisher, UserKeyService userKeyService, com.atlassian.oauth.serviceprovider.Clock clock)
public com.atlassian.oauth.serviceprovider.ServiceProviderToken get(String token) throws com.atlassian.oauth.serviceprovider.StoreException
get in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic Iterable<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getAccessTokensForUser(String username)
getAccessTokensForUser in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorepublic 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.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeAndNotify(String token) throws com.atlassian.oauth.serviceprovider.StoreException
removeAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreException@Nullable protected final com.atlassian.oauth.serviceprovider.ServiceProviderToken remove(String token) throws com.atlassian.oauth.serviceprovider.StoreException
com.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeExpiredTokensAndNotify()
throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredTokensAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionprotected final List<com.atlassian.oauth.serviceprovider.ServiceProviderToken> removeExpiredTokens() throws com.atlassian.oauth.serviceprovider.StoreException
com.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeExpiredSessionsAndNotify()
throws com.atlassian.oauth.serviceprovider.StoreException
removeExpiredSessionsAndNotify in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStorecom.atlassian.oauth.serviceprovider.StoreExceptionprotected final void removeExpiredSessions()
throws com.atlassian.oauth.serviceprovider.StoreException
com.atlassian.oauth.serviceprovider.StoreExceptionpublic void removeByConsumer(String consumerKey)
removeByConsumer in interface com.atlassian.oauth.serviceprovider.ServiceProviderTokenStoreCopyright © 2002-2022 Atlassian. All Rights Reserved.