Enum SigningHashAlgorithm

java.lang.Object
java.lang.Enum<SigningHashAlgorithm>
software.amazon.awssdk.services.cloudfront.utils.SigningHashAlgorithm
All Implemented Interfaces:
Serializable, Comparable<SigningHashAlgorithm>

@SdkPublicApi public enum SigningHashAlgorithm extends Enum<SigningHashAlgorithm>
The hash algorithm to use when generating CloudFront signed URLs or signed cookies.

CloudFront supports SHA-1 (default) and SHA-256 for signed URLs and signed cookies. When using SHA-256, the signed URL will include a Hash-Algorithm=SHA256 query parameter, and signed cookies will include a CloudFront-Hash-Algorithm=SHA256 cookie.

  • Enum Constant Details

  • Method Details

    • values

      public static SigningHashAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SigningHashAlgorithm valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public String id()
      The algorithm identifier used in CloudFront's Hash-Algorithm parameter and in Java Security algorithm name construction (e.g., "SHA256withRSA").