Stay organized with collections Save and categorize content based on your preferences.
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.
https://cloud.google.com/docs/authentication for more information on authentication in GCP.
See Alsohttps://cloud.google.com/iam for more information on the IAM Service.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["Version 2.37.0-rc is the latest release candidate for the Credentials class documentation, while version 2.32.0 is also available."],["This documentation provides a detailed overview of the `Credentials` class across multiple versions, ranging from 2.10.1 to 2.37.0-rc."],["The `Credentials` class is an opaque representation of authentication configuration, used to encapsulate authentication parameters for internal client library components."],["Access tokens can be created from a `Credentials` object using the OAuth2 Library."],["External links are provided for further information regarding authentication in GCP and the IAM service."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4