Package com.eqixiac.equinix.core.auth
package com.eqixiac.equinix.core.auth
Authentication and credential management for the Equinix Java SDK.
EquinixCredentials supplies the OAuth2 client
credentials (Client ID and Client Secret); BasicEquinixCredentials
is the standard implementation. Credentials are resolved through the
EquinixCredentialsProvider extension point — implement it
to source credentials from a vault, environment, or rotation scheme; the SDK ships
EquinixStaticCredentialsProvider for the common static case.
At authentication time the SDK builds an Oauth2TokenRequest
from the provided credentials and performs the OAuth2 client_credentials grant
(POST /oauth2/v1/token) — the only grant the Equinix token endpoint supports.
- See Also:
-
ClassDescriptionStandard implementation of
EquinixCredentialsusing OAuth2 client credentials.Represents credentials for authenticating with the Equinix Platform APIs.Supplies theEquinixCredentialsused to obtain an OAuth2 access token.The defaultEquinixCredentialsProvider: holds a single, fixedEquinixCredentialsinstance supplied at construction and returns it on everyEquinixCredentialsProvider.getCredentials()call.The wire body for the OAuth2 token request (POST /oauth2/v1/token, spec schemaOauth2TokenRequest):client_id,client_secretandgrant_type.