public enum MACType extends java.lang.Enum<MACType>
Enum Constant and Description |
---|
HMACSHA256 |
HMACSHA384 |
HMACSHA512 |
Poly1305AES |
Modifier and Type | Field and Description |
---|---|
int |
bitmask
Bitmask for aggregation.
|
int |
ivlen |
KeyType |
keyType |
java.lang.String |
mac |
Modifier and Type | Method and Description |
---|---|
javax.crypto.Mac |
get()
Gets an instance of Mac using the specified algorithm.
|
static MACType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MACType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MACType HMACSHA256
public static final MACType HMACSHA384
public static final MACType HMACSHA512
public static final MACType Poly1305AES
public final int bitmask
public final java.lang.String mac
public final int ivlen
public final KeyType keyType
public static MACType[] values()
for (MACType c : MACType.values()) System.out.println(c);
public static MACType 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 final javax.crypto.Mac get()