Class SignatureInfo

java.lang.Object
com.google.cloud.storage.SignatureInfo

public class SignatureInfo extends Object
Signature Info holds payload components of the string that requires signing.
See Also:
  • Field Details

  • Method Details

    • constructUnsignedPayload

      public String constructUnsignedPayload()
      Constructs payload to be signed.
      Returns:
      payload to sign
      See Also:
    • 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:
      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:
    • getHttpVerb

      public HttpMethod getHttpVerb()
    • getContentMd5

      public String getContentMd5()
    • getContentType

      public String getContentType()
    • getExpiration

      public long getExpiration()
    • getCanonicalizedExtensionHeaders

      public Map<String,String> getCanonicalizedExtensionHeaders()
    • getQueryParams

      public Map<String,String> getQueryParams()
    • getCanonicalizedResource

      public URI getCanonicalizedResource()
    • getSignatureVersion

      public com.google.cloud.storage.Storage.SignUrlOption.SignatureVersion getSignatureVersion()
    • getTimestamp

      public long getTimestamp()
    • getAccountEmail

      public String getAccountEmail()