Enum Class ECryptoKeyAgreementMethod

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

public enum ECryptoKeyAgreementMethod extends Enum<ECryptoKeyAgreementMethod> implements com.helger.base.id.IHasID<String>
Enumeration of key agreement methods for XML Encryption. Key agreement is an alternative to key transport (e.g. RSA-OAEP) where both parties contribute to deriving a shared secret.
Since:
4.4.0
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

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

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