gnu.crypto.prng

Class PRNGFactory

public class PRNGFactory extends Object implements Registry

A Factory to instantiate pseudo random number generators.

Version: $Revision: 1.10 $

Method Summary
static IRandomgetInstance(String prng)

Returns an instance of a padding algorithm given its name.

static SetgetNames()

Returns a Set of names of padding algorithms supported by this Factory.

Method Detail

getInstance

public static final IRandom getInstance(String prng)

Returns an instance of a padding algorithm given its name.

Parameters: prng the case-insensitive name of the PRNG.

Returns: an instance of the pseudo-random number generator.

Throws: InternalError if the implementation does not pass its self- test.

getNames

public static final Set getNames()

Returns a Set of names of padding algorithms supported by this Factory.

Returns: a Set of pseudo-random number generator algorithm names (Strings).

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.