Skip to content

Commit 7ccd488

Browse files
chingor13pongad
authored andcommitted
---
yaml --- r: 10011 b: refs/heads/master c: c715fc6 h: refs/heads/master i: 10009: 77a990b 10007: 9b9e982
1 parent 1fee77d commit 7ccd488

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

  • trunk/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d7a135aa1977db55b312f6dee146a411b9e8c122
2+
refs/heads/master: c715fc6309f269af8ffae07c0c356206033d6384
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: e517774bbe2086967ef8ed5d0b7f2761bc976645
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/Storage.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,10 +2043,9 @@ public static Builder newBuilder() {
20432043
* {@code GOOGLE_APPLICATION_CREDENTIALS} is set or your application is running in App Engine,
20442044
* then {@code signUrl} will use that credentials to sign the URL. If the credentials passed to
20452045
* {@link StorageOptions} do not implement {@link ServiceAccountSigner} (this is the case, for
2046-
* instance, for Compute Engine credentials and Google Cloud SDK credentials) then {@code signUrl}
2047-
* will throw an {@link IllegalStateException} unless an implementation of
2048-
* {@link ServiceAccountSigner} is passed using the
2049-
* {@link SignUrlOption#signWith(ServiceAccountSigner)} option.
2046+
* instance, for Google Cloud SDK credentials) then {@code signUrl} will throw an
2047+
* {@link IllegalStateException} unless an implementation of {@link ServiceAccountSigner} is
2048+
* passed using the {@link SignUrlOption#signWith(ServiceAccountSigner)} option.
20502049
*
20512050
* <p>A service account signer is looked for in the following order:
20522051
* <ol>
@@ -2076,6 +2075,9 @@ public static Builder newBuilder() {
20762075
* ServiceAccountCredentials.fromStream(new FileInputStream(keyPath))));
20772076
* }</pre>
20782077
*
2078+
* <p>Note that the {@link ServiceAccountSigner} may require additional configuration to enable
2079+
* URL signing. See the documentation for the implementation for more details.</p>
2080+
*
20792081
* @param blobInfo the blob associated with the signed URL
20802082
* @param duration time until the signed URL expires, expressed in {@code unit}. The finest
20812083
* granularity supported is 1 second, finer granularities will be truncated

0 commit comments

Comments
 (0)