Class ClientCredentials

  • All Implemented Interfaces:
    TokenSource

    public class ClientCredentials
    extends RefreshableTokenSource
    An implementation of RefreshableTokenSource implementing the client_credentials OAuth grant type.

    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.