public static enum Utils.KeyedHashAlgorithm extends Enum<Utils.KeyedHashAlgorithm>
Utils.computeKeyedHash(byte[], String, com.akamai.netstorage.Utils.KeyedHashAlgorithm)
Currently supported hashes include HMAC-MD5; HMAC-SHA1; HMAC-SHA256
The string representation matches the java Mac.getInstance(String)} cononical names.| Enum Constant and Description |
|---|
HMACMD5 |
HMACSHA1 |
HMACSHA256 |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
static Utils.KeyedHashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Utils.KeyedHashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Utils.KeyedHashAlgorithm HMACMD5
public static final Utils.KeyedHashAlgorithm HMACSHA1
public static final Utils.KeyedHashAlgorithm HMACSHA256
public static Utils.KeyedHashAlgorithm[] values()
for (Utils.KeyedHashAlgorithm c : Utils.KeyedHashAlgorithm.values()) System.out.println(c);
public static Utils.KeyedHashAlgorithm 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 getAlgorithm()
Copyright © 2016. All rights reserved.