Enum Class ECryptoKeyWrapAlgorithm

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

public enum ECryptoKeyWrapAlgorithm extends Enum<ECryptoKeyWrapAlgorithm> implements com.helger.base.id.IHasID<String>
Enumeration of key wrap algorithms used in key agreement schemes. The key wrap algorithm wraps the content encryption key using the derived key from key derivation.
Since:
4.4.0
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

      public static ECryptoKeyWrapAlgorithm[] 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 ECryptoKeyWrapAlgorithm 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 ECryptoKeyWrapAlgorithm getFromIDOrNull(@Nullable String sID)
    • getFromIDOrDefault

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