gnu.crypto.hash
public class HashFactory extends Object
A Factory to instantiate message digest algorithm instances.
Version: $Revision: 1.14 $
Method Summary | |
---|---|
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. |
Return an instance of a hash algorithm given its name.
Parameters: name the name of the hash algorithm.
Returns: an instance of the hash algorithm, or null if none found.
Throws: InternalError if the implementation does not pass its self- test.
Returns a Set of names of hash algorithms supported by this Factory.
Returns: a Set of hash names (Strings).