| Modifier and Type | Method and Description |
|---|---|
static Hasher |
getSupportedHasher() |
java.lang.String |
hash(java.lang.String value)
Algorithm that returns a Hashed string of the value given as parameter
|
java.lang.Boolean |
isSupported() |
static Hasher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Hasher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hasher SHA_1
public static final Hasher SHA_512
public static Hasher[] values()
for (Hasher c : Hasher.values()) System.out.println(c);
public static Hasher 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 java.lang.String hash(java.lang.String value)
value - the string to hashpublic java.lang.Boolean isSupported()
public static Hasher getSupportedHasher()