| Package | Description |
|---|---|
| com.atlassian.oauth2.client.api.storage |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
TokenHandler.execute(String clientTokenId,
TokenHandler.ClientTokenCallback<T> callback)
Handles the use of
ClientToken, automatically applying a refresh before executing the callback if
required. |
<T> T |
TokenHandler.execute(String clientTokenId,
TokenHandler.ClientTokenCallback<T> callback,
Duration margin)
Handles the use of
ClientToken, automatically applying a refresh before executing the callback if
required. |
ClientToken |
TokenHandler.getRefreshedToken(String clientTokenId)
Refreshes and returns the client token, saving the up to date token to the store.
|
ClientToken |
TokenHandler.getRefreshedToken(String clientTokenId,
Duration margin)
Refreshes if access token is already expired or expires within the margin period.
|
Copyright © 2020 Atlassian. All rights reserved.