Enum Class ECryptoAlgorithmC14N

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

public enum ECryptoAlgorithmC14N extends Enum<ECryptoAlgorithmC14N> implements ICryptoAlgorithmC14N
Enumeration with all message canonicalization algorithms supported when signing.
Since:
0.10.6
Author:
Philip Helger
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static ECryptoAlgorithmC14N[] 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 ECryptoAlgorithmC14N 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()
      Description copied from interface: ICryptoAlgorithmC14N
      This is the internal algorithm ID for resolution.
      Specified by:
      getID in interface ICryptoAlgorithmC14N
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
    • getAlgorithmURI

      @Nonempty public @NonNull @Nonempty String getAlgorithmURI()
      Specified by:
      getAlgorithmURI in interface ICryptoAlgorithmC14N
      Returns:
      The unique XMLDsig algorithm URI for this algorithm (as in http://www.w3.org/TR/2001/REC-xml-c14n-20010315)
    • getFromIDOrNull

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

      public static @NonNull ECryptoAlgorithmC14N getFromIDOrThrow(@Nullable String sID)
    • getFromIDOrDefault

      public static @Nullable ECryptoAlgorithmC14N getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmC14N eDefault)
    • getFromURIOrNull

      public static @Nullable ECryptoAlgorithmC14N getFromURIOrNull(@Nullable String sURI)