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-04-09 UTC."],[[["The latest version of the `GoogleCredentialsProvider.Builder` is 2.63.1, and the page provides links to various other versions, including 2.12.2, which is the version of this documentation."],["`GoogleCredentialsProvider.Builder` is an abstract class that inherits from `java.lang.Object`, and it includes inherited members such as `clone()`, `equals(Object)`, and `wait()`."],["This class offers methods such as `build()`, `getJwtEnabledScopes()`, `getScopesToApply()`, and `getUseJwtAccessWithScope()`, to manage credentials and scopes."],["`setJwtEnabledScopes(List\u003cString\u003e val)` method enables the use of JWT tokens for service authentication when compatible scopes are present, allowing access to the entire service."],["`setScopesToApply(List\u003cString\u003e val)` allows for the configuration of scopes to be applied to credentials acquired from Application Default Credentials."]]],[]]