Class SignatureInfo (2.9.2)

public class SignatureInfo

Signature Info holds payload components of the string that requires signing. See Also: Components

Inheritance

java.lang.Object > SignatureInfo

Static Fields

COMPONENT_SEPARATOR

public static final char COMPONENT_SEPARATOR
Field Value
TypeDescription
char

GOOG4_RSA_SHA256

public static final String GOOG4_RSA_SHA256
Field Value
TypeDescription
String

SCOPE

public static final String SCOPE
Field Value
TypeDescription
String

Methods

constructUnsignedPayload()

public String constructUnsignedPayload()

Constructs payload to be signed. See Also: Signed URLs

Returns
TypeDescription
String

payload to sign

constructV2QueryString()

public String constructV2QueryString()

Returns a query string constructed from this object's stored query parameters, sorted in code point order. Note that these query parameters are not used when constructing the URL's signature. The returned value does not include the leading ? character, as this is not part of a query string.

Returns
TypeDescription
String

A URI query string. Returns an empty string if the user supplied no query parameters.

constructV4QueryString()

public String constructV4QueryString()

Returns a query string constructed from this object's stored query parameters, sorted in code point order so that the query string can be used in a V4 canonical request string. The returned value does not include the leading ? character, as this is not part of a query string. See Also: Canonical Requests

Returns
TypeDescription
String

getAccountEmail()

public String getAccountEmail()
Returns
TypeDescription
String

getCanonicalizedExtensionHeaders()

public Map<String,String> getCanonicalizedExtensionHeaders()
Returns
TypeDescription
Map<String,String>

getCanonicalizedResource()

public URI getCanonicalizedResource()
Returns
TypeDescription
URI

getContentMd5()

public String getContentMd5()
Returns
TypeDescription
String

getContentType()

public String getContentType()
Returns
TypeDescription
String

getExpiration()

public long getExpiration()
Returns
TypeDescription
long

getHttpVerb()

public HttpMethod getHttpVerb()
Returns
TypeDescription
HttpMethod

getQueryParams()

public Map<String,String> getQueryParams()
Returns
TypeDescription
Map<String,String>

getSignatureVersion()

public Storage.SignUrlOption.SignatureVersion getSignatureVersion()
Returns
TypeDescription
com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion

getTimestamp()

public long getTimestamp()
Returns
TypeDescription
long