public enum HmacAlgorithms extends 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 |
---|---|
String |
getName()
Gets the algorithm name.
|
String |
toString()
The algorithm name
|
static HmacAlgorithms |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<HmacAlgorithms>
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.