Sets the scopes that are compatible with JWT tokens.
JWT Tokens don't support scopes, they only support audiences. Audiences allow access to
the entire service as opposed some subset (ie. access can't be restricted to use the scope
https://www.googleapis.com/auth/bigtable.data.readonly). A service client can opt-in
to using JWT tokens by specifying which scopes encompass the entire service. If any of those
scopes are present when the client is using ServiceAccountCredentials, then JWT
tokens will be used for authentication.
[[["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-15 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class, specifically for version 2.9.0 and other versions, up to the most recent version of 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class is an abstract builder, inheriting from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, used to create \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains methods for managing scopes, including \u003ccode\u003egetJwtEnabledScopes\u003c/code\u003e, \u003ccode\u003egetScopesToApply\u003c/code\u003e, and \u003ccode\u003egetUseJwtAccessWithScope\u003c/code\u003e, which control JWT token usage and credential scope application.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetJwtEnabledScopes\u003c/code\u003e, \u003ccode\u003esetScopesToApply\u003c/code\u003e, and \u003ccode\u003esetUseJwtAccessWithScope\u003c/code\u003e methods are used to configure the builder with settings for JWT tokens and scopes for service credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method is used to create the \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e instance after configuring the builder.\u003c/p\u003e\n"]]],[],null,[]]