We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d72d3b commit 9c483baCopy full SHA for 9c483ba
1 file changed
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java
@@ -227,6 +227,17 @@ public GoogleCredentials createScoped(Collection<String> scopes) {
227
return this;
228
}
229
230
+ /**
231
+ * If the credentials support scopes, creates a copy of the the identity with the specified
232
+ * scopes; otherwise, returns the same instance.
233
+ *
234
+ * @param scopes Collection of scopes to request.
235
+ * @return GoogleCredentials with requested scopes.
236
+ */
237
+ public GoogleCredentials createScoped(String... scopes) {
238
+ return createScoped(scopes);
239
+ }
240
+
241
/**
242
* If the credentials support domain-wide delegation, creates a copy
243
* of the identity so that it impersonates the specified user;
0 commit comments