Class Oauth2TokenRequest
java.lang.Object
com.eqixiac.equinix.core.auth.Oauth2TokenRequest
The wire body for the OAuth2 token request (
POST /oauth2/v1/token, spec schema
Oauth2TokenRequest): client_id, client_secret and grant_type.
This DTO - not the EquinixCredentials instance itself - is what the SDK serializes
when authenticating. That decouples the wire contract from whatever class a custom
EquinixCredentialsProvider returns: implementations of EquinixCredentials only
need to supply getAccessKey()/getSecretKey(); they carry no Jackson annotations
and are never serialized directly.
- Author:
- ianjones
-
Constructor Summary
ConstructorsConstructorDescriptionOauth2TokenRequest(EquinixCredentials credentials) Builds the client-credentials token request body from the supplied credentials. -
Method Summary
-
Constructor Details
-
Oauth2TokenRequest
Builds the client-credentials token request body from the supplied credentials.- Parameters:
credentials- the credentials sourced from the configured provider
-