Enum Class KeyAlgorithm

java.lang.Object
java.lang.Enum<KeyAlgorithm>
co.cryptoservice.sdk.KeyAlgorithm
All Implemented Interfaces:
Serializable, Comparable<KeyAlgorithm>, Constable

public enum KeyAlgorithm extends Enum<KeyAlgorithm>
A key-pair algorithm accepted by POST /v2/keys/generate.
  • Enum Constant Details

    • ED25519

      public static final KeyAlgorithm ED25519
      ed25519.
    • X25519

      public static final KeyAlgorithm X25519
      x25519.
    • ED448

      public static final KeyAlgorithm ED448
      ed448.
    • X448

      public static final KeyAlgorithm X448
      x448.
    • P256

      public static final KeyAlgorithm P256
      p256.
    • P384

      public static final KeyAlgorithm P384
      p384.
    • ML_KEM_512

      public static final KeyAlgorithm ML_KEM_512
      ml-kem-512.
    • ML_KEM_768

      public static final KeyAlgorithm ML_KEM_768
      ml-kem-768.
    • ML_KEM_1024

      public static final KeyAlgorithm ML_KEM_1024
      ml-kem-1024.
    • ML_DSA_44

      public static final KeyAlgorithm ML_DSA_44
      ml-dsa-44.
    • ML_DSA_65

      public static final KeyAlgorithm ML_DSA_65
      ml-dsa-65.
    • ML_DSA_87

      public static final KeyAlgorithm ML_DSA_87
      ml-dsa-87.
  • Method Details

    • values

      public static KeyAlgorithm[] 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 KeyAlgorithm 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
    • wire

      public String wire()
      The value the API uses.
      Returns:
      the wire name, for example ed25519
    • toString

      public String toString()
      Overrides:
      toString in class Enum<KeyAlgorithm>