java.io.Serializable
, java.lang.Comparable<HmacAlgorithms>
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 supports all algorithms in this enum.
Enum Constant | 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_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 | Field | Description |
---|---|---|
private java.lang.String |
algorithm |
Modifier and Type | Method | Description |
---|---|---|
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_256
Every implementation of the Java platform is required to support this standard Mac algorithm.
public static final HmacAlgorithms HMAC_SHA_384
Every implementation of the Java platform is not required to support this Mac algorithm.
public static final HmacAlgorithms HMAC_SHA_512
Every implementation of the Java platform is not required to support this Mac algorithm.
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 toString()
toString
in class java.lang.Enum<HmacAlgorithms>
commons-codec version 1.10 - Copyright © 2002-2017 - Apache Software Foundation