public enum HmacAlgorithms extends 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.
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString()
The algorithm name
|
static HmacAlgorithms |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HmacAlgorithms[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<HmacAlgorithms>Copyright © 2016. All rights reserved.