public static final class MultiHasher.HashFunc
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
HashFunction |
hashFunction |
static MultiHasher.HashFunc |
MD5 |
java.lang.String |
name |
static MultiHasher.HashFunc |
SHA1 |
static MultiHasher.HashFunc |
SHA256 |
static MultiHasher.HashFunc |
SHA512 |
| Modifier and Type | Method and Description |
|---|---|
static MultiHasher.HashFunc |
create(java.lang.String name,
HashFunction hashFunction)
Creates a new HashFunc storing it in the global map of HashFunctions.
|
java.util.Map<java.lang.String,MultiHasher.HashFunc> |
getAllFuncs()
Gets an immutable list of all registered HashFuncs.
|
HashFunction |
getHashFunction()
Gets the Guava
HashFunction for this MultiHasher.HashFunc. |
java.lang.String |
getName()
A unique name describing this
MultiHasher.HashFunc, Usually the name of the Algorithm. |
Hasher |
newHasher()
Creates a new
Hasher from the underlying HashFunction. |
public static final MultiHasher.HashFunc MD5
public static final MultiHasher.HashFunc SHA1
public static final MultiHasher.HashFunc SHA256
public static final MultiHasher.HashFunc SHA512
public final java.lang.String name
public final HashFunction hashFunction
public static MultiHasher.HashFunc create(java.lang.String name, HashFunction hashFunction)
name - A Unique identifier for this HashFunc, Usually the name of the Algorithm.hashFunction - The underlying Guava HashFunction.public java.util.Map<java.lang.String,MultiHasher.HashFunc> getAllFuncs()
public java.lang.String getName()
MultiHasher.HashFunc, Usually the name of the Algorithm.public HashFunction getHashFunction()
HashFunction for this MultiHasher.HashFunc.public Hasher newHasher()
Hasher from the underlying HashFunction.Hasher.