Enum DKIMSignAlgorithm
- All Implemented Interfaces:
Serializable, Comparable<DKIMSignAlgorithm>
Signing Algorithm specified by DKIM spec.
- Author:
- Lin Gao
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the algorithm name specified by the DKIM specification.Gets the Hash Algorithm ID that can be identified by theHashingStrategy.Gets the hash algorithm to produce the hash of the message.Gets the Signature Algorithm, like: SHA256withRSA, SHA1withRSA.static DKIMSignAlgorithmReturns the enum constant of this type with the specified name.static DKIMSignAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RSA_SHA1
-
RSA_SHA256
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
Gets the hash algorithm to produce the hash of the message.- Returns:
- the hash algorithm
-
hashAlgoId
Gets the Hash Algorithm ID that can be identified by theHashingStrategy.- Returns:
- the id of the Hash Algorithm.
-
signatureAlgorithm
Gets the Signature Algorithm, like: SHA256withRSA, SHA1withRSA.- Returns:
- the signature algorithm
-