Enum Class ECryptoKeyDerivationMethod

java.lang.Object
java.lang.Enum<ECryptoKeyDerivationMethod>
com.helger.phase4.crypto.ECryptoKeyDerivationMethod
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, Serializable, Comparable<ECryptoKeyDerivationMethod>, Constable

public enum ECryptoKeyDerivationMethod extends Enum<ECryptoKeyDerivationMethod> implements com.helger.base.id.IHasID<String>
Enumeration of key derivation functions used in key agreement schemes. The key derivation function takes the shared secret from key agreement and derives the actual key encryption key.
Since:
4.4.0
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

      public static ECryptoKeyDerivationMethod[] 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 ECryptoKeyDerivationMethod 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
    • getID

      @Nonempty public @NonNull @Nonempty String getID()
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
    • getFromIDOrNull

      public static @Nullable ECryptoKeyDerivationMethod getFromIDOrNull(@Nullable String sID)
    • getFromIDOrDefault

      public static @Nullable ECryptoKeyDerivationMethod getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoKeyDerivationMethod eDefault)