public static class Storage.SignUrlOption extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static Storage.SignUrlOption |
httpMethod(HttpMethod httpMethod)
The HTTP method to be used with the signed URL.
|
static Storage.SignUrlOption |
signWith(ServiceAccountSigner signer)
Provides a service account signer to sign the URL.
|
static Storage.SignUrlOption |
withContentType()
Use it if signature should include the blob's content-type.
|
static Storage.SignUrlOption |
withExtHeaders(Map<String,String> extHeaders)
Use it if signature should include the blob's canonicalized extended headers.
|
static Storage.SignUrlOption |
withHostName(String hostName)
Use a different host name than the default host name 'storage.googleapis.com'
|
static Storage.SignUrlOption |
withMd5()
Use it if signature should include the blob's md5.
|
static Storage.SignUrlOption |
withV2Signature()
Use if signature version should be V2.
|
static Storage.SignUrlOption |
withV4Signature()
Use if signature version should be V4.
|
public static Storage.SignUrlOption httpMethod(HttpMethod httpMethod)
public static Storage.SignUrlOption withContentType()
public static Storage.SignUrlOption withMd5()
public static Storage.SignUrlOption withExtHeaders(Map<String,String> extHeaders)
public static Storage.SignUrlOption withV2Signature()
withV4Signature()
is called.public static Storage.SignUrlOption withV4Signature()
withV2Signature()
is
called.public static Storage.SignUrlOption signWith(ServiceAccountSigner signer)
public static Storage.SignUrlOption withHostName(String hostName)
Copyright © 2019 Google LLC. All rights reserved.