Skip to content

Commit ddd10c8

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 1751 b: refs/heads/master c: 8c353ec h: refs/heads/master i: 1749: 6c58cd2 1747: d3d1a93 1743: 5cad5ce
1 parent f545d83 commit ddd10c8

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c486452b4c81da7f077e2573b1f29dee3994bd86
2+
refs/heads/master: 8c353ecbc62a9f8d7784ba8f99ee2f3cf15a4c00
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3

trunk/gcloud-java-core/src/main/java/com/google/gcloud/AuthCredentials.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ public RestorableState<AuthCredentials> capture() {
132132
}
133133
}
134134

135+
/**
136+
* Represents service account credentials.
137+
*
138+
* @see <a href="https://cloud.google.com/docs/authentication#user_accounts_and_service_accounts">
139+
* User accounts and service accounts</a>
140+
*/
135141
public static class ServiceAccountAuthCredentials extends AuthCredentials {
136142

137143
private final String account;
@@ -195,6 +201,14 @@ public RestorableState<AuthCredentials> capture() {
195201
}
196202
}
197203

204+
/**
205+
* Represents Application Default Credentials, which are credentials that are inferred from the
206+
* runtime environment.
207+
*
208+
* @see <a
209+
* href="https://developers.google.com/identity/protocols/application-default-credentials">
210+
* Google Application Default Credentials</a>
211+
*/
198212
public static class ApplicationDefaultAuthCredentials extends AuthCredentials {
199213

200214
private GoogleCredentials googleCredentials;
@@ -243,6 +257,11 @@ public RestorableState<AuthCredentials> capture() {
243257
}
244258
}
245259

260+
/**
261+
* Represents that requests sent to the server should not be authenticated. This is typically
262+
* useful when using the local service emulators, such as {@code LocalGcdHelper} and
263+
* {@code LocalResourceManagerHelper}.
264+
*/
246265
public static class NoAuthCredentials extends AuthCredentials {
247266

248267
private static final AuthCredentials INSTANCE = new NoAuthCredentials();
@@ -309,7 +328,9 @@ public static ServiceAccountAuthCredentials createFor(String account, PrivateKey
309328
}
310329

311330
/**
312-
* Creates a placeholder denoting that no credentials should be used.
331+
* Creates a placeholder denoting that no credentials should be used. This is typically useful
332+
* when using the local service emulators, such as {@code LocalGcdHelper} and
333+
* {@code LocalResourceManagerHelper}.
313334
*/
314335
public static AuthCredentials noAuth() {
315336
return NoAuthCredentials.INSTANCE;

0 commit comments

Comments
 (0)