Skip to content

Commit e53336a

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 4605 b: refs/heads/logging-alpha c: 8c353ec h: refs/heads/master i: 4603: 94f0f47
1 parent 250a543 commit e53336a

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
@@ -12,7 +12,7 @@ refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
1414
refs/heads/gcs-nio: 283aeaf15efdcf3621eb6859f05e55ad7764375d
15-
refs/heads/logging-alpha: c486452b4c81da7f077e2573b1f29dee3994bd86
15+
refs/heads/logging-alpha: 8c353ecbc62a9f8d7784ba8f99ee2f3cf15a4c00
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0
1818
refs/tags/v0.1.2: 3eb3fe866ba22487686048f45d927b8c8638ea3f

branches/logging-alpha/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)