Enum Class SignEncryptFlavor

java.lang.Object
java.lang.Enum<SignEncryptFlavor>
co.ankatech.ankasecure.sdk.model.SignEncryptFlavor
All Implemented Interfaces:
Serializable, Comparable<SignEncryptFlavor>, Constable

public enum SignEncryptFlavor extends Enum<SignEncryptFlavor>
The advisory key-flavor hint a streaming sign-then-encrypt request may carry (SignEncryptStreamOptions.flavor()). The server derives the effective flavor from the keys; the hint does not change which keys are used.
  • Enum Constant Details

    • SYMMETRIC

      public static final SignEncryptFlavor SYMMETRIC
      A symmetric encryption key.
    • ASYMMETRIC

      public static final SignEncryptFlavor ASYMMETRIC
      An asymmetric (single-algorithm) key pair.
    • COMPOSITE

      public static final SignEncryptFlavor COMPOSITE
      A composite (hybrid) key.
  • Method Details

    • values

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

      public static SignEncryptFlavor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null