Enum DKIMSignAlgorithm

java.lang.Object
java.lang.Enum<DKIMSignAlgorithm>
io.vertx.ext.mail.DKIMSignAlgorithm
All Implemented Interfaces:
Serializable, Comparable<DKIMSignAlgorithm>

public enum DKIMSignAlgorithm extends Enum<DKIMSignAlgorithm>
Signing Algorithm specified by DKIM spec.
Author:
Lin Gao
  • Enum Constant Details

  • Method Details

    • values

      public static DKIMSignAlgorithm[] 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 DKIMSignAlgorithm 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
    • dkimAlgoName

      public String dkimAlgoName()
      Gets the algorithm name specified by the DKIM specification. See: https://tools.ietf.org/html/rfc6376#section-3.3
      Returns:
      the algorithm name
    • hashAlgorithm

      public String hashAlgorithm()
      Gets the hash algorithm to produce the hash of the message.
      Returns:
      the hash algorithm
    • hashAlgoId

      public String hashAlgoId()
      Gets the Hash Algorithm ID that can be identified by the HashingStrategy.
      Returns:
      the id of the Hash Algorithm.
    • signatureAlgorithm

      public String signatureAlgorithm()
      Gets the Signature Algorithm, like: SHA256withRSA, SHA1withRSA.
      Returns:
      the signature algorithm