Enum DKIMSignAlgorithm

    • Method Detail

      • values

        public static DKIMSignAlgorithm[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DKIMSignAlgorithm c : DKIMSignAlgorithm.values())
            System.out.println(c);
        
        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