Enum SignatureAlgorithm

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

public enum SignatureAlgorithm extends Enum<SignatureAlgorithm>
A enumeration of Signature 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

    • SignatureAlgorithm

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

    • values

      public static SignatureAlgorithm[] 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 SignatureAlgorithm 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 Signature algorithm as specified in the document " standard names for algorithms"
      Returns:
      the standard name of the algorithm.
    • fromStandardName

      public static SignatureAlgorithm fromStandardName(String signatureAlgorithmName)