Class OfBizServiceProviderTokenStore
java.lang.Object
com.atlassian.jira.oauth.serviceprovider.OfBizServiceProviderTokenStore
- All Implemented Interfaces:
com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
public class OfBizServiceProviderTokenStore
extends Object
implements com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
Provides an OfBiz implementation of the OAuth Service Provider token store. That is OAuth tokens that are used to
process incoming requests.
- Since:
- v4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOfBizServiceProviderTokenStore
(com.atlassian.oauth.serviceprovider.Clock clock, com.atlassian.event.api.EventPublisher eventPublisher, JiraPropertySetFactory propertySetFactory, OfBizDelegator delegator, com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore, UserKeyService userKeyService, UserManager userManager) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.oauth.serviceprovider.ServiceProviderToken
Iterable
<com.atlassian.oauth.serviceprovider.ServiceProviderToken> getAccessTokensForUser
(String username) com.atlassian.oauth.serviceprovider.ServiceProviderToken
put
(com.atlassian.oauth.serviceprovider.ServiceProviderToken token) protected final com.atlassian.oauth.serviceprovider.ServiceProviderToken
void
removeAndNotify
(String token) void
removeByConsumer
(String consumerKey) protected void
removeByIds
(List<Long> idsToRemove) protected final void
void
protected final List
<com.atlassian.oauth.serviceprovider.ServiceProviderToken> void
-
Field Details
-
TABLE
- See Also:
-
PROPERTY_SET_KEY
- See Also:
-
-
Constructor Details
-
OfBizServiceProviderTokenStore
public OfBizServiceProviderTokenStore(com.atlassian.oauth.serviceprovider.Clock clock, com.atlassian.event.api.EventPublisher eventPublisher, JiraPropertySetFactory propertySetFactory, OfBizDelegator delegator, com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore consumerStore, UserKeyService userKeyService, UserManager userManager)
-
-
Method Details
-
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
- Specified by:
removeAndNotify
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
remove
@Nullable protected final com.atlassian.oauth.serviceprovider.ServiceProviderToken remove(String token) throws com.atlassian.oauth.serviceprovider.StoreException - 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
-
removeExpiredTokens
protected final List<com.atlassian.oauth.serviceprovider.ServiceProviderToken> removeExpiredTokens() throws com.atlassian.oauth.serviceprovider.StoreException- 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
-
removeExpiredSessions
protected final void removeExpiredSessions() throws com.atlassian.oauth.serviceprovider.StoreException- Throws:
com.atlassian.oauth.serviceprovider.StoreException
-
removeByConsumer
- Specified by:
removeByConsumer
in interfacecom.atlassian.oauth.serviceprovider.ServiceProviderTokenStore
-
removeByIds
-