Class SignatureInfo.Builder (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
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)
Parameter
Methods
build()
public SignatureInfo build()
Creates an SignatureInfo
object from this builder.
Returns
setAccountEmail(String accountEmail)
public SignatureInfo.Builder setAccountEmail(String accountEmail)
Parameter
Name |
Description |
accountEmail |
String
|
Returns
public SignatureInfo.Builder setCanonicalizedExtensionHeaders(Map<String,String> canonicalizedExtensionHeaders)
Parameter
Returns
setCanonicalizedQueryParams(Map<String,String> queryParams)
public SignatureInfo.Builder setCanonicalizedQueryParams(Map<String,String> queryParams)
Parameter
Returns
setContentMd5(String contentMd5)
public SignatureInfo.Builder setContentMd5(String contentMd5)
Parameter
Name |
Description |
contentMd5 |
String
|
Returns
setContentType(String contentType)
public SignatureInfo.Builder setContentType(String contentType)
Parameter
Name |
Description |
contentType |
String
|
Returns
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
setTimestamp(long timestamp)
public SignatureInfo.Builder setTimestamp(long timestamp)
Parameter
Name |
Description |
timestamp |
long
|
Returns
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 2024-08-09 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-08-09 UTC.",
"state": ""
}