public interface RefreshTokenManager
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MIN_REFRESH_INTERVAL |
| Modifier and Type | Method and Description |
|---|---|
void |
refreshToken(OAuth2Adapter adapter,
String accessTokenId)
Refreshes the token of the given id for the given adapter.
|
void |
setMinRefreshIntervalInMillis(int minRefreshIntervalInMillis)
Sets the minimum interval of time in which we allow a given access token id to be refresh.
|
void |
setRefreshedTokensStore(ObjectStore<Boolean> refreshedTokens)
Sets the
ObjectStore to use for the tokens refresh state. |
static final int DEFAULT_MIN_REFRESH_INTERVAL
void refreshToken(OAuth2Adapter adapter, String accessTokenId) throws Exception
adapter - accessTokenId - Exceptionvoid setMinRefreshIntervalInMillis(int minRefreshIntervalInMillis)
minRefreshIntervalInMillis - a number of millisecondsvoid setRefreshedTokensStore(ObjectStore<Boolean> refreshedTokens) throws IllegalStateException
ObjectStore to use for the tokens refresh state.
This can only be set during initialization. If this is set, the value given to
setMinRefreshIntervalInMillis(int) will be ignored.refreshedTokens - IllegalStateException - if called after initialization.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.