There was an error while loading. Please reload this page.
1 parent a1bbc4f commit 9f40bc7Copy full SHA for 9f40bc7
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