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-09-04 UTC."],[[["\u003cp\u003eThis document outlines the available versions of the \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e, ranging from version 2.63.1 (latest) down to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleCredentialsProvider.Builder\u003c/code\u003e class is an abstract static class used to build GoogleCredentialsProvider instances, inheriting from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBuilder\u003c/code\u003e class has a constructor and several methods, including \u003ccode\u003ebuild()\u003c/code\u003e, \u003ccode\u003egetJwtEnabledScopes()\u003c/code\u003e, \u003ccode\u003egetScopesToApply()\u003c/code\u003e, \u003ccode\u003egetUseJwtAccessWithScope()\u003c/code\u003e, \u003ccode\u003esetJwtEnabledScopes()\u003c/code\u003e, \u003ccode\u003esetScopesToApply()\u003c/code\u003e, and \u003ccode\u003esetUseJwtAccessWithScope()\u003c/code\u003e, for managing credentials and scopes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetJwtEnabledScopes()\u003c/code\u003e and \u003ccode\u003egetScopesToApply()\u003c/code\u003e both return the scopes that were previously set.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetJwtEnabledScopes()\u003c/code\u003e sets the scopes compatible with JWT tokens, while \u003ccode\u003esetScopesToApply()\u003c/code\u003e defines scopes for Application Default Credentials before they are sent to the service.\u003c/p\u003e\n"]]],[],null,[]]