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-09-04 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eCredentialsProvider\u003c/code\u003e interface in the \u003ccode\u003ecom.google.api.gax.core\u003c/code\u003e package, which is part of the Google API Client Library for Java.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCredentialsProvider\u003c/code\u003e interface is used to manage and obtain the credentials required to authenticate and interact with Google services.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation provided is for version 2.63.1, and there is a history of various previous releases, down to version 2.7.1, available.\u003c/p\u003e\n"],["\u003cp\u003eThe getCredentials() method, when called, will return the authentication credentials, and if they haven't been acquired yet, it will handle getting them at that moment, which can potentially throw an IOException.\u003c/p\u003e\n"]]],[],null,[]]