public class ClientCredentials extends RefreshableTokenSource
Using the provided client ID, secret, and token URL, this class makes requests using its HttpClient to fetch OAuth tokens. Additional parameters and scopes can be specified as well. To support all OAuth endpoints, authentication parameters can be passed in the request body or in the Authorization header.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientCredentials.Builder |
RefreshableTokenSource.TokenStatetoken| Modifier and Type | Method and Description |
|---|---|
protected Token |
refresh()
Refresh the OAuth token.
|
getToken, getTokenAsync, getTokenBlocking, getTokenState, retrieveToken, withAsyncRefresh, withClockSupplier, withExpiryBufferprotected Token refresh()
RefreshableTokenSourceThis method may throw an exception if the token cannot be refreshed. The specific exception type depends on the implementation.
refresh in class RefreshableTokenSourceCopyright © 2025. All rights reserved.