Returns credentials defined by a GdchCredentials key file in JSON format from the Google
Developers Console.
Important: If you accept a credential configuration (credential JSON/File/Stream) from an
external source for authentication to Google Cloud Platform, you must validate it before
providing it to any Google API or library. Providing an unvalidated credential configuration to
Google APIs can compromise the security of your systems and data. For more information, refer
to {@see documentation}.
Returns credentials defined by a GdchCredentials key file in JSON format from the Google
Developers Console.
Important: If you accept a credential configuration (credential JSON/File/Stream) from an
external source for authentication to Google Cloud Platform, you must validate it before
providing it to any Google API or library. Providing an unvalidated credential configuration to
Google APIs can compromise the security of your systems and data. For more information, refer
to {@see documentation}.
The projectId value for a Credential type. Since not all GoogleCredentials subclass have a
projectId associated, the projectId may be null. A subset of GoogleCredentials subclasses will
override to return their projectId.
Refresh the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
For GDCH credentials, this class creates a self-signed JWT, and sends to the GDCH
authentication endpoint (tokenServerUri) to exchange an access token for the intended api
audience (apiAudience).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-10 UTC."],[],[]]