Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Method and Description |
---|---|
static Storage.SignUrlOption |
Storage.SignUrlOption.httpMethod(HttpMethod httpMethod)
The HTTP method to be used with the signed URL.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.signWith(com.google.auth.ServiceAccountSigner signer)
Provides a service account signer to sign the URL.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withBucketBoundHostname(String bucketBoundHostname)
Use a bucket-bound hostname, which replaces the storage.googleapis.com host with the name of
a CNAME bucket, e.g.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withBucketBoundHostname(String bucketBoundHostname,
Storage.UriScheme uriScheme)
Use a bucket-bound hostname, which replaces the storage.googleapis.com host with the name of
a CNAME bucket, e.g.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withContentType()
Use it if signature should include the blob's content-type.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withExtHeaders(Map<String,String> extHeaders)
Use it if signature should include the blob's canonicalized extended headers.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withHostName(String hostName)
Use a different host name than the default host name 'storage.googleapis.com'.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withMd5()
Use it if signature should include the blob's md5.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withPathStyle()
Generates a path-style URL, which places the bucket name in the path portion of the URL
instead of in the hostname, e.g 'https://storage.googleapis.com/mybucket/...'.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withQueryParams(Map<String,String> queryParams)
Use if the URL should contain additional query parameters.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withV2Signature()
Use if signature version should be V2.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withV4Signature()
Use if signature version should be V4.
|
static Storage.SignUrlOption |
Storage.SignUrlOption.withVirtualHostedStyle()
Use a virtual hosted-style hostname, which adds the bucket into the host portion of the URI
rather than the path, e.g.
|
Modifier and Type | Method and Description |
---|---|
URL |
Storage.signUrl(BlobInfo blobInfo,
long duration,
TimeUnit unit,
Storage.SignUrlOption... options)
Generates a signed URL for a blob.
|
URL |
Blob.signUrl(long duration,
TimeUnit unit,
Storage.SignUrlOption... options)
Generates a signed URL for this blob.
|
Copyright © 2023 Google LLC. All rights reserved.