public static final class SignatureInfo.Builder extends Object
Constructor and Description |
---|
Builder(HttpMethod httpVerb,
long expiration,
URI canonicalizedResource)
Constructs builder.
|
Builder(SignatureInfo signatureInfo) |
Modifier and Type | Method and Description |
---|---|
SignatureInfo |
build()
Creates an
SignatureInfo object from this builder. |
SignatureInfo.Builder |
setAccountEmail(String accountEmail) |
SignatureInfo.Builder |
setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders) |
SignatureInfo.Builder |
setCanonicalizedQueryParams(Map<String,String> queryParams) |
SignatureInfo.Builder |
setContentMd5(String contentMd5) |
SignatureInfo.Builder |
setContentType(String contentType) |
SignatureInfo.Builder |
setSignatureVersion(com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion signatureVersion) |
SignatureInfo.Builder |
setTimestamp(long timestamp) |
public Builder(HttpMethod httpVerb, long expiration, URI canonicalizedResource)
httpVerb
- the HTTP methodexpiration
- the EPOX expiration datecanonicalizedResource
- the resource URIIllegalArgumentException
- if required field is not provided.public Builder(SignatureInfo signatureInfo)
public SignatureInfo.Builder setContentMd5(String contentMd5)
public SignatureInfo.Builder setContentType(String contentType)
public SignatureInfo.Builder setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)
public SignatureInfo.Builder setCanonicalizedQueryParams(Map<String,String> queryParams)
public SignatureInfo.Builder setSignatureVersion(com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion signatureVersion)
public SignatureInfo.Builder setAccountEmail(String accountEmail)
public SignatureInfo.Builder setTimestamp(long timestamp)
public SignatureInfo build()
SignatureInfo
object from this builder.Copyright © 2023 Google LLC. All rights reserved.