Enum Class KdfAlgorithm

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

public enum KdfAlgorithm extends Enum<KdfAlgorithm>
A key-derivation function accepted by POST /v2/kdf.
  • Enum Constant Details

    • SCRYPT

      public static final KdfAlgorithm SCRYPT
      scrypt.
    • HKDF_SHA256

      public static final KdfAlgorithm HKDF_SHA256
      hkdf-sha256.
    • PBKDF2_SHA256

      public static final KdfAlgorithm PBKDF2_SHA256
      pbkdf2-sha256.
  • Method Details

    • values

      public static KdfAlgorithm[] 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 KdfAlgorithm 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 scrypt
    • toString

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