public enum Hasher extends Enum<Hasher>
| Modifier and Type | Method and Description |
|---|---|
static Hasher |
getSupportedHasher() |
String |
hash(String value)
Algorithm that returns a Hashed string of the value given as parameter
|
Boolean |
isSupported() |
static Hasher |
valueOf(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(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 hash(String value)
value - the string to hashpublic Boolean isSupported()
public static Hasher getSupportedHasher()
Copyright © 2014. All rights reserved.