Class SignatureInfo.Builder (2.44.1)

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
Name Description
httpVerb HttpMethod

the HTTP method

expiration long

the EPOX expiration date

canonicalizedResource URI

the resource URI

Builder(SignatureInfo signatureInfo)

public Builder(SignatureInfo signatureInfo)
Parameter
Name Description
signatureInfo SignatureInfo

Methods

build()

public SignatureInfo build()

Creates an SignatureInfo object from this builder.

Returns
Type Description
SignatureInfo

setAccountEmail(String accountEmail)

public SignatureInfo.Builder setAccountEmail(String accountEmail)
Parameter
Name Description
accountEmail String
Returns
Type Description
SignatureInfo.Builder

setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)

public SignatureInfo.Builder setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)
Parameter
Name Description
canonicalizedExtensionHeaders Map<String,String>
Returns
Type Description
SignatureInfo.Builder

setCanonicalizedQueryParams(Map<String,String> queryParams)

public SignatureInfo.Builder setCanonicalizedQueryParams(Map<String,String> queryParams)
Parameter
Name Description
queryParams Map<String,String>
Returns
Type Description
SignatureInfo.Builder

setContentMd5(String contentMd5)

public SignatureInfo.Builder setContentMd5(String contentMd5)
Parameter
Name Description
contentMd5 String
Returns
Type Description
SignatureInfo.Builder

setContentType(String contentType)

public SignatureInfo.Builder setContentType(String contentType)
Parameter
Name Description
contentType String
Returns
Type Description
SignatureInfo.Builder

setSignatureVersion(Storage.SignUrlOption.SignatureVersion signatureVersion)

public SignatureInfo.Builder setSignatureVersion(Storage.SignUrlOption.SignatureVersion signatureVersion)
Parameter
Name Description
signatureVersion com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion
Returns
Type Description
SignatureInfo.Builder

setTimestamp(long timestamp)

public SignatureInfo.Builder setTimestamp(long timestamp)
Parameter
Name Description
timestamp long
Returns
Type Description
SignatureInfo.Builder