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 \u003ccode\u003ecom.google.api.gax.core\u003c/code\u003e package, specifically for Java version 2.60.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class is used to build a \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e object and inherits methods and attributes from the Java \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation is for a pre-GA library, which means it's in Beta and might have limited support with changes that may not be compatible with other pre-GA versions, as outlined by the Pre-GA Offerings Terms.\u003c/p\u003e\n"],["\u003cp\u003eKey methods of the \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class include \u003ccode\u003ebuild()\u003c/code\u003e, which creates a \u003ccode\u003eGoogleCredentialsProvider\u003c/code\u003e, and methods for managing scopes, like \u003ccode\u003esetJwtEnabledScopes()\u003c/code\u003e and \u003ccode\u003esetScopesToApply()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetUseJwtAccessWithScope()\u003c/code\u003e, \u003ccode\u003esetUseJwtAccessWithScope()\u003c/code\u003e, \u003ccode\u003egetJwtEnabledScopes()\u003c/code\u003e and \u003ccode\u003esetJwtEnabledScopes()\u003c/code\u003e methods are noted as pre-GA features, and are involved in the usage of self signed JWT with scopes for service account credentials.\u003c/p\u003e\n"]]],[],null,[]]