public class HashFactory
extends java.lang.Object
A Factory to instantiate message digest algorithm instances.
Modifier and Type | Method and Description |
---|---|
static IMessageDigest |
getInstance(java.lang.String name)
Return an instance of a hash algorithm given its name.
|
static java.util.Set |
getNames()
Returns a
Set of names of hash algorithms supported by this
Factory. |
public static IMessageDigest getInstance(java.lang.String name)
Return an instance of a hash algorithm given its name.
name
- the name of the hash algorithm.java.lang.InternalError
- if the implementation does not pass its self-
test.public static final java.util.Set getNames()
Returns a Set
of names of hash algorithms supported by this
Factory.
Set
of hash names (Strings).Copyright © 2025. All rights reserved.