jonelo.jacksum.adapt.gnu.crypto.hash
Class HashFactory
java.lang.Objectjonelo.jacksum.adapt.gnu.crypto.hash.HashFactory
- Registry
public class HashFactory
extends java.lang.Object
implements Registry
A Factory to instantiate message digest algorithm instances.
static IMessageDigest | getInstance(String name)- Return an instance of a hash algorithm given its name.
|
static Set | getNames()- Returns a
Set of names of hash algorithms supported by this
Factory.
|
getInstance
public static IMessageDigest getInstance(String name)
Return an instance of a hash algorithm given its name.
name - the name of the hash algorithm.
- an instance of the hash algorithm, or null if none found.
getNames
public static final Set getNames()
Returns a Set of names of hash algorithms supported by this
Factory.
- a
Set of hash names (Strings).