public enum HmacAlgorithms extends java.lang.Enum<HmacAlgorithms>
HmacUtils
algorithm names from the Java Cryptography Architecture Standard Algorithm Name
Documentation.
Note: Not all JCE implementations support all the algorithms in this enum.
Enum Constant and Description |
---|
HMAC_MD5
The HmacMD5 Message Authentication Code (MAC) algorithm specified in RFC 2104 and RFC 1321.
|
HMAC_SHA_1
The HmacSHA1 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
|
HMAC_SHA_224
The HmacSHA224 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
|
HMAC_SHA_256
The HmacSHA256 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
|
HMAC_SHA_384
The HmacSHA384 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
|
HMAC_SHA_512
The HmacSHA512 Message Authentication Code (MAC) algorithm specified in RFC 2104 and FIPS PUB 180-2.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the algorithm name.
|
java.lang.String |
toString()
The algorithm name
|
static HmacAlgorithms |
valueOf(java.lang.String name)
Returns 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.
|
public static final HmacAlgorithms HMAC_MD5
Every implementation of the Java platform is required to support this standard MAC algorithm.
public static final HmacAlgorithms HMAC_SHA_1
Every implementation of the Java platform is required to support this standard MAC algorithm.
public static final HmacAlgorithms HMAC_SHA_224
Every implementation of the Java 8+ platform is required to support this standard MAC algorithm.
public static final HmacAlgorithms HMAC_SHA_256
Every implementation of the Java platform is required to support this standard MAC algorithm.
public static final HmacAlgorithms HMAC_SHA_384
This MAC algorithm is optional; not all implementations support it.
public static final HmacAlgorithms HMAC_SHA_512
This MAC algorithm is optional; not all implementations support it.
public static HmacAlgorithms[] values()
for (HmacAlgorithms c : HmacAlgorithms.values()) System.out.println(c);
public static HmacAlgorithms valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<HmacAlgorithms>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"