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 webpage provides documentation for the \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class within the Google API Client Library for Java, specifically version 2.58.0.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the library is 2.63.1, and the page also provides links to other older versions, ranging from 2.62.0 all the way down to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class allows users to build and configure a \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e instance, including setting JWT-enabled scopes, scopes to apply, and whether to use JWT access with scopes, all within the context of the Pre-GA Offerings Terms.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides the methods \u003ccode\u003ebuild()\u003c/code\u003e, \u003ccode\u003egetJwtEnabledScopes()\u003c/code\u003e, \u003ccode\u003egetScopesToApply()\u003c/code\u003e, \u003ccode\u003egetUseJwtAccessWithScope()\u003c/code\u003e, \u003ccode\u003esetJwtEnabledScopes(List<String> val)\u003c/code\u003e, \u003ccode\u003esetScopesToApply(List<String> val)\u003c/code\u003e, and \u003ccode\u003esetUseJwtAccessWithScope(boolean val)\u003c/code\u003e, each with detailed parameter and return descriptions.\u003c/p\u003e\n"],["\u003cp\u003eThis library, including features like JWT token scope handling, is in a pre-general availability (pre-GA) stage, which means it might have limited support and could experience changes that are incompatible with other pre-GA versions.\u003c/p\u003e\n"]]],[],null,[]]