All Implemented Interfaces:
Serializable, Comparable<EncAlgo>, java.lang.constant.Constable

public enum EncAlgoextends Enum<EncAlgo>
Base encryption algorithm type.
  • Enum Constant Details

    • ELGAMAL

      public static final EncAlgo ELGAMAL
      ElGamal encryption.
    • EC

      public static final EncAlgo EC
      EC encryption.
    • ECIES

      public static final EncAlgo ECIES
      ECIES encryption.
    • ECIES_MLKEM

      public static final EncAlgo ECIES_MLKEM
      ECIES-MLKEM hybrid encryption.
    • ECIES_MLKEM_INT

      public static final EncAlgo ECIES_MLKEM_INT
      ECIES-MLKEM hybrid encryption (internal).
  • Field Details

    • name

      private final String name
      Name of the encryption algorithm.
  • Constructor Details

    • EncAlgo

      private EncAlgo(String name)
      Creates a value with its algorithm name.
      Parameters:
      name - the algorithm name
  • Method Details

    • values

      public static EncAlgo[] 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 EncAlgo 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
    • getName

      public String getName()
      The name of this encryption algorithm.
      Returns:
      the algorithm name this constant was declared with, such as ECIES-MLKEM, which is not always the same as the constant's own identifier