Package org.apache.commons.codec.digest
Enum HmacAlgorithms
- All Implemented Interfaces:
- Serializable,- Comparable<HmacAlgorithms>
Standard 
HmacUtils algorithm names from the Java Cryptography Architecture Standard Algorithm Name
 Documentation.
 Note: Not all JCE implementations support all the algorithms in this enum.
- Since:
- 1.10
- See Also:
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe HmacMD5 Message Authentication Code (MAC) algorithm specified in RFC 2104 and RFC 1321.The HmacSHA1 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.The HmacSHA224 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.The HmacSHA256 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.The HmacSHA384 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.The HmacSHA512 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Gets the algorithm name.toString()The algorithm name.static HmacAlgorithmsReturns the enum constant of this type with the specified name.static HmacAlgorithms[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
HMAC_MD5The HmacMD5 Message Authentication Code (MAC) algorithm specified in RFC 2104 and RFC 1321.Every implementation of the Java platform is required to support this standard MAC algorithm. 
- 
HMAC_SHA_1The HmacSHA1 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.Every implementation of the Java platform is required to support this standard MAC algorithm. 
- 
HMAC_SHA_224The HmacSHA224 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.Every implementation of the Java 8+ platform is required to support this standard MAC algorithm. - Since:
- 1.11
 
- 
HMAC_SHA_256The HmacSHA256 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.Every implementation of the Java platform is required to support this standard MAC algorithm. 
- 
HMAC_SHA_384The HmacSHA384 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.This MAC algorithm is optional; not all implementations support it. 
- 
HMAC_SHA_512The HmacSHA512 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.This MAC algorithm is optional; not all implementations support it. 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getNameGets the algorithm name.- Returns:
- the algorithm name.
- Since:
- 1.11
 
- 
toStringThe algorithm name.- Overrides:
- toStringin class- Enum<HmacAlgorithms>
- Returns:
- The algorithm name ("HmacSHA512" for example)
- See Also:
 
 
-