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"]],[["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-15 UTC."],[[["\u003cp\u003eThis document provides versioned documentation for \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e, with the latest version being 2.63.1 and the current version being viewed as 2.34.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e is an abstract class that inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, and includes inherited methods such as \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ewait()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method of \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e returns a \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e, while \u003ccode\u003egetJwtEnabledScopes()\u003c/code\u003e, \u003ccode\u003egetScopesToApply()\u003c/code\u003e, and \u003ccode\u003egetUseJwtAccessWithScope()\u003c/code\u003e retrieve previously set values.\u003c/p\u003e\n"],["\u003cp\u003eYou can set scopes for JWT tokens and Application Default Credentials, or toggle the use of self-signed JWTs using the methods \u003ccode\u003esetJwtEnabledScopes()\u003c/code\u003e, \u003ccode\u003esetScopesToApply()\u003c/code\u003e, and \u003ccode\u003esetUseJwtAccessWithScope()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation contains a comprehensive list of previous versions of \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e from 2.62.0 all the way to 2.7.1, with each version hyperlinked to its corresponding documentation page.\u003c/p\u003e\n"]]],[],null,[]]