public enum EMacAlgorithm extends Enum<EMacAlgorithm>
| Enum Constant and Description |
|---|
HMAC_MD5 |
HMAC_SHA1 |
HMAC_SHA256 |
| Modifier and Type | Method and Description |
|---|---|
Mac |
createMac() |
Mac |
createMac(Provider aSecurityProvider) |
SecretKeySpec |
createSecretKey(byte[] aKey) |
String |
getAlgorithm() |
static EMacAlgorithm |
getFromStringIgnoreCase(String sAlgorithm) |
static EMacAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMacAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMacAlgorithm HMAC_MD5
public static final EMacAlgorithm HMAC_SHA1
public static final EMacAlgorithm HMAC_SHA256
public static EMacAlgorithm[] values()
for (EMacAlgorithm c : EMacAlgorithm.values()) System.out.println(c);
public static EMacAlgorithm 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 null@Nonnull public SecretKeySpec createSecretKey(@Nonnull byte[] aKey)
@Nullable public static EMacAlgorithm getFromStringIgnoreCase(@Nullable String sAlgorithm)
Copyright © 2014–2016 Philip Helger. All rights reserved.