Enum MessageDigestAlgorithm

java.lang.Object
java.lang.Enum<MessageDigestAlgorithm>
org.eclipse.cbi.common.security.MessageDigestAlgorithm
All Implemented Interfaces:
Serializable, Comparable<MessageDigestAlgorithm>, java.lang.constant.Constable

public enum MessageDigestAlgorithm extends Enum<MessageDigestAlgorithm>
A enumeration of MessageDigest algorithm available in Java 8 as specified in the document " standard names for algorithms".
  • Enum Constant Details

  • Field Details

    • standardName

      private final String standardName
    • aliases

      private final Set<String> aliases
  • Constructor Details

    • MessageDigestAlgorithm

      private MessageDigestAlgorithm(String standardName, String... alias)
  • Method Details

    • values

      public static MessageDigestAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MessageDigestAlgorithm valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • standardName

      public String standardName()
      Returns the standard name of the MessageDigest algorithm as specified in the document " standard names for algorithms"
      Returns:
      the standard name of the algorithm.
    • fromStandardName

      public static MessageDigestAlgorithm fromStandardName(String digestAlgorithmName)