Consistent HTTP 401s would indicate that there is potentially an issue outside the issued token, so only making a single retry is suggested.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the refreshed authentication datathe duration to check time)Refreshes the authentication data used by the provider if the token is expiring within the provided duration |
| public T | Returns: the refreshed authentication datathe duration to check time, boolean boolean value to enable/disable refresh of keys refreshKeys)Refreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keys |
| refreshIfExpiringWithin | back to summary |
|---|---|
| public T refreshIfExpiringWithin(Duration time) Refreshes the authentication data used by the provider if the token is expiring within the provided duration
| |
| refreshIfExpiringWithin | back to summary |
|---|---|
| public T refreshIfExpiringWithin(Duration time, boolean refreshKeys) Refreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keys
| |