diff --git a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java index 2ce25a8190f3..9d5f926edf65 100644 --- a/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java +++ b/gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java @@ -632,9 +632,15 @@ public static Builder builder() { * is only valid within a certain time period. * This is particularly useful if you don't want publicly * accessible blobs, but don't want to require users to explicitly log in. + *
+ * Example usage of creating a signed URL that is valid for 2 weeks: + *
{@code + * service.signUrl(BlobInfo.of("bucket", "name"), TimeUnit.DAYS.toSeconds(14)); + * }* * @param blobInfo the blob associated with the signed url * @param expirationTimeInSeconds the signed URL expiration (using epoch time) + * @param options optional URL signing options * @see Signed-URLs */ URL signUrl(BlobInfo blobInfo, long expirationTimeInSeconds, SignUrlOption... options);