public static enum Utils.HashAlgorithm extends Enum<Utils.HashAlgorithm>
Utils.computeHash(java.io.InputStream, com.akamai.netstorage.Utils.HashAlgorithm)
Currently supported hashes include MD5; SHA1; SHA256
The string representation matches the java MessageDigest.getInstance(String) canonical names.| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
static Utils.HashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Utils.HashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Utils.HashAlgorithm MD5
public static final Utils.HashAlgorithm SHA1
public static final Utils.HashAlgorithm SHA256
public static Utils.HashAlgorithm[] values()
for (Utils.HashAlgorithm c : Utils.HashAlgorithm.values()) System.out.println(c);
public static Utils.HashAlgorithm 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.