HashFactory (GNU cryptographic primitives and tools)
Keywords: gnu.crypto.hash.HashFactory,HashFactory class

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| For the latest news and information visit The GNU Crypto project
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## gnu.crypto.hash
Class HashFactory

    java.lang.Object
      |
      +--gnu.crypto.hash.HashFactory

public class HashFactory
extends java.lang.Object

A Factory to instantiate message digest algorithm instances.

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getInstance

    public static IMessageDigest getInstance(java.lang.String name)

  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:
    `java.lang.InternalError` - if the implementation does not pass its self- test.

### getNames

    public static final java.util.Set getNames()

  Returns a `Set` of names of hash algorithms supported by this Factory.

  Returns:
    a `Set` of hash names (Strings).

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| For the latest news and information visit The GNU Crypto project
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001, 2002, 2003, 2004 Free Software Foundation, Inc.