Class SignatureInfo.Builder (2.55.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public static final class SignatureInfo . Builder
Constructors
Builder(HttpMethod httpVerb, long expiration, URI canonicalizedResource)
public Builder ( HttpMethod httpVerb , long expiration , URI canonicalizedResource )
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 )
Methods
build()
public SignatureInfo build ()
Creates an SignatureInfo
object from this builder.
setAccountEmail(String accountEmail)
public SignatureInfo . Builder setAccountEmail ( String accountEmail )
Parameter
Name
Description
accountEmail
String
public SignatureInfo . Builder setCanonicalizedExtensionHeaders ( Map<String , String > canonicalizedExtensionHeaders )
Parameter
Name
Description
canonicalizedExtensionHeaders
Map <String ,String >
setCanonicalizedQueryParams(Map<String,String> queryParams)
public SignatureInfo . Builder setCanonicalizedQueryParams ( Map<String , String > queryParams )
setContentMd5(String contentMd5)
public SignatureInfo . Builder setContentMd5 ( String contentMd5 )
Parameter
Name
Description
contentMd5
String
setContentType(String contentType)
public SignatureInfo . Builder setContentType ( String contentType )
Parameter
Name
Description
contentType
String
setSignatureVersion(Storage.SignUrlOption.SignatureVersion signatureVersion)
public SignatureInfo . Builder setSignatureVersion ( Storage . SignUrlOption . SignatureVersion signatureVersion )
Parameter
Name
Description
signatureVersion
com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion
setTimestamp(long timestamp)
public SignatureInfo . Builder setTimestamp ( long timestamp )
Parameter
Name
Description
timestamp
long
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[]]