Enum Class ECryptoAlgorithmCrypt

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

public enum ECryptoAlgorithmCrypt extends Enum<ECryptoAlgorithmCrypt> implements ICryptoAlgorithmCrypt
Enumeration with all message encryption algorithms supported.
Author:
Philip Helger
  • Enum Constant Details

  • Field Details

    • ENCRPYTION_ALGORITHM_DEFAULT

      public static final ECryptoAlgorithmCrypt ENCRPYTION_ALGORITHM_DEFAULT
      Default encrypt algorithm
  • Method Details

    • values

      public static ECryptoAlgorithmCrypt[] 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 ECryptoAlgorithmCrypt 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

      @Nonnull @Nonempty public String getID()
      Description copied from interface: ICryptoAlgorithmCrypt
      This is the internal algorithm ID for resolution.
      Specified by:
      getID in interface ICryptoAlgorithmCrypt
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
    • getOID

      @Nonnull public org.bouncycastle.asn1.ASN1ObjectIdentifier getOID()
      Specified by:
      getOID in interface ICryptoAlgorithmCrypt
      Returns:
      The OID of the algorithm to be used by the Security Provider.
    • getAlgorithmURI

      @Nonnull @Nonempty public String getAlgorithmURI()
      Specified by:
      getAlgorithmURI in interface ICryptoAlgorithmCrypt
      Returns:
      The algorithm ID for XMLDsig base encryption
    • getFromIDOrNull

      @Nullable public static ECryptoAlgorithmCrypt getFromIDOrNull(@Nullable String sID)
    • getFromIDOrThrow

      @Nonnull public static ECryptoAlgorithmCrypt getFromIDOrThrow(@Nullable String sID)
    • getFromIDOrDefault

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