public enum MacAlgorithm extends Enum<MacAlgorithm>
| Enum Constant and Description |
|---|
HMACSHA384
HMAC with SHA384
|
| Modifier and Type | Field and Description |
|---|---|
static MacAlgorithm |
DEFAULT
The default MAC algorithm is HMACSHA384.
|
| Modifier and Type | Method and Description |
|---|---|
static MacAlgorithm |
getByIndex(long index)
Gets the algorithm by index.
|
int |
getDefaultKeySizeInBytes()
Get the default key size in bytes.
|
int |
getIndex()
Get the index of the enumeration value.
|
static MacAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MacAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MacAlgorithm HMACSHA384
public static final MacAlgorithm DEFAULT
public static MacAlgorithm[] values()
for (MacAlgorithm c : MacAlgorithm.values()) System.out.println(c);
public static MacAlgorithm 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 static MacAlgorithm getByIndex(long index) throws NoSuchAlgorithmException
index - the index of the algorithm to getNoSuchAlgorithmException - thrown if no algorithm exists with the given indexpublic int getDefaultKeySizeInBytes()
public int getIndex()
Copyright © 2021. All rights reserved.