Class SignatureInfo.Builder (2.27.1-SNAPSHOT)

public static final class SignatureInfo.Builder

Inheritance

java.lang.Object > SignatureInfo.Builder

Constructors

Builder(HttpMethod httpVerb, long expiration, URI canonicalizedResource)

public Builder(HttpMethod httpVerb, long expiration, URI canonicalizedResource)

Constructs builder.

Parameters
NameDescription
httpVerbHttpMethod

the HTTP method

expirationlong

the EPOX expiration date

canonicalizedResourceURI

the resource URI

Builder(SignatureInfo signatureInfo)

public Builder(SignatureInfo signatureInfo)
Parameter
NameDescription
signatureInfoSignatureInfo

Methods

build()

public SignatureInfo build()

Creates an SignatureInfo object from this builder.

Returns
TypeDescription
SignatureInfo

setAccountEmail(String accountEmail)

public SignatureInfo.Builder setAccountEmail(String accountEmail)
Parameter
NameDescription
accountEmailString
Returns
TypeDescription
SignatureInfo.Builder

setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)

public SignatureInfo.Builder setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)
Parameter
NameDescription
canonicalizedExtensionHeadersMap<String,String>
Returns
TypeDescription
SignatureInfo.Builder

setCanonicalizedQueryParams(Map<String,String> queryParams)

public SignatureInfo.Builder setCanonicalizedQueryParams(Map<String,String> queryParams)
Parameter
NameDescription
queryParamsMap<String,String>
Returns
TypeDescription
SignatureInfo.Builder

setContentMd5(String contentMd5)

public SignatureInfo.Builder setContentMd5(String contentMd5)
Parameter
NameDescription
contentMd5String
Returns
TypeDescription
SignatureInfo.Builder

setContentType(String contentType)

public SignatureInfo.Builder setContentType(String contentType)
Parameter
NameDescription
contentTypeString
Returns
TypeDescription
SignatureInfo.Builder

setSignatureVersion(Storage.SignUrlOption.SignatureVersion signatureVersion)

public SignatureInfo.Builder setSignatureVersion(Storage.SignUrlOption.SignatureVersion signatureVersion)
Parameter
NameDescription
signatureVersioncom.google.cloud.storage.Storage.SignUrlOption.SignatureVersion
Returns
TypeDescription
SignatureInfo.Builder

setTimestamp(long timestamp)

public SignatureInfo.Builder setTimestamp(long timestamp)
Parameter
NameDescription
timestamplong
Returns
TypeDescription
SignatureInfo.Builder