Interface SignedCookie

All Known Subinterfaces:
CookiesForCannedPolicy, CookiesForCustomPolicy
All Known Implementing Classes:
DefaultCookiesForCannedPolicy, DefaultCookiesForCustomPolicy

@Immutable @ThreadSafe public interface SignedCookie
Base interface class for CloudFront signed cookies
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Generates an HTTP GET request that can be executed by an HTTP client to access the resource
    Returns the cookie key-pair-Id header value that can be appended to an HTTP GET request i.e., "CloudFront-Key-Pair-Id=[KEY_PAIR_ID_VALUE]"
    Returns the resource URL
    Returns the cookie signature header value that can be appended to an HTTP GET request i.e., "CloudFront-Signature=[SIGNATURE_VALUE]"
  • Field Details

  • Method Details

    • resourceUrl

      String resourceUrl()
      Returns the resource URL
    • createHttpGetRequest

      SdkHttpRequest createHttpGetRequest()
      Generates an HTTP GET request that can be executed by an HTTP client to access the resource
    • signatureHeaderValue

      String signatureHeaderValue()
      Returns the cookie signature header value that can be appended to an HTTP GET request i.e., "CloudFront-Signature=[SIGNATURE_VALUE]"
    • keyPairIdHeaderValue

      String keyPairIdHeaderValue()
      Returns the cookie key-pair-Id header value that can be appended to an HTTP GET request i.e., "CloudFront-Key-Pair-Id=[KEY_PAIR_ID_VALUE]"