| Package | Description |
|---|---|
| com.atlassian.oauth2.client.api.storage | |
| com.atlassian.oauth2.client.api.storage.token.exception |
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AccessTokenExpiredException
Indicates that the
access token of a ClientToken has expired, and it's
no longer possible to automatically obtain a new access token because
refresh token is not present. |
class |
ConfigurationNotFoundException
Indicates that a
ClientConfigurationEntity can't be found in the database. |
class |
RefreshTokenExpiredException
Indicates that the
refresh token of a ClientToken has expired, and it's
no longer possible to automatically obtain a new access token. |
class |
TokenNotFoundException
Indicates that a
ClientTokenEntity can't be found in the database. |
Copyright © 2020 Atlassian. All rights reserved.