We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b6fce commit ef16c27Copy full SHA for ef16c27
1 file changed
gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java
@@ -632,6 +632,11 @@ public static Builder builder() {
632
* is only valid within a certain time period.
633
* This is particularly useful if you don't want publicly
634
* accessible blobs, but don't want to require users to explicitly log in.
635
+ * <p/>
636
+ * Example usage of creating a signed URL that is valid for 2 weeks:
637
+ * <pre> {@code
638
+ * service.signUrl(BlobInfo.of("bucket", "name"), TimeUnit.DAYS.toSeconds(14));
639
+ * }</pre>
640
*
641
* @param blobInfo the blob associated with the signed url
642
* @param expirationTimeInSeconds the signed URL expiration (using epoch time)
0 commit comments