Provides an interface to hold and acquire the credentials that will be used to call the service.
Methods
getCredentials()
publicabstractCredentialsgetCredentials()
Gets the credentials which will be used to call the service. If the credentials have not been
acquired yet, then they will be acquired when this function is called.
[[["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-04-09 UTC."],[[["This webpage lists the available versions of the `CredentialsProvider` interface for the Google API Client Library for Java (gax), ranging from version 2.7.1 up to the latest release, 2.63.1."],["The current version displayed at the top of the page is 2.62.0."],["The `CredentialsProvider` interface is responsible for managing and acquiring the credentials required to interact with a service."],["The `getCredentials()` method of the `CredentialsProvider` interface is used to obtain the service credentials, and will acquire them if they have not been acquired yet, returning them as a `com.google.auth.Credentials` type."],["Calling `getCredentials()` could throw an `IOException` if there is any issue with obtaining the service credentials."]]],[]]