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"]],[["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 2025-08-01 UTC."],[[["This page provides documentation for the `CredentialsProvider` interface within the Google API Client Libraries for Java (gax)."],["The latest version available is 2.63.1, with numerous older versions accessible, ranging from 2.62.0 down to 2.7.1."],["`CredentialsProvider` is an interface designed to manage the credentials required to interact with a service."],["The primary method within the interface, `getCredentials()`, retrieves the credentials needed for service calls and acquires them if they have not been acquired already."],["The `getCredentials()` method can throw an `IOException`."]]],[]]