Class Credentials (2.32.0)

An opaque representation of the authentication configuration.

Applications use factory functions to provide the authentication parameters (for example, a raw access token). The factory function encapsulates the parameters in an instance of this class. The interface in this class is (intentionally) very narrow. Only the internal components in the client libraries should need to access the details of this class.

You can use the OAuth2 Library to create access tokens from a Credentials object.

See Also

https://cloud.google.com/docs/authentication for more information on authentication in GCP.

See Also

https://cloud.google.com/iam for more information on the IAM Service.