For the latest news and information visit
The GNU Crypto project

gnu.crypto.sig
Class KeyPairGeneratorFactory

java.lang.Object
  |
  +--gnu.crypto.sig.KeyPairGeneratorFactory
All Implemented Interfaces:
Registry

public class KeyPairGeneratorFactory
extends java.lang.Object
implements Registry

A Factory to instantiate asymmetric keypair generators.

Version:
$Revision: 1.1 $

Fields inherited from interface gnu.crypto.Registry
AES_CIPHER, ANUBIS_CIPHER, CTR_MODE, DSA_KPG, DSA_SIG, DSS_KPG, DSS_SIG, ECB_MODE, GNU_CRYPTO, HMAC_NAME_PREFIX, ICM_MODE, ICM_PRNG, KHAZAD_CIPHER, MD_PRNG, MD4_HASH, MD5_HASH, NULL_CIPHER, OFB_MODE, PKCS7_PAD, RIJNDAEL_CIPHER, RIPEMD_128_HASH, RIPEMD_160_HASH, RIPEMD128_HASH, RIPEMD160_HASH, RSA_KPG, RSA_PSS_SIG, SERPENT_CIPHER, SHA_1_HASH, SHA_HASH, SHA1_HASH, SHA160_HASH, SQUARE_CIPHER, TBC_PAD, TMMH16, TWOFISH_CIPHER, UHASH32, UMAC_PRNG, UMAC32, WHIRLPOOL_HASH
 
Method Summary
static IKeyPairGenerator getInstance(java.lang.String name)
          Returns an instance of a keypair generator given its name.
static java.util.Set getNames()
          Returns a Set of keypair generator names 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 IKeyPairGenerator getInstance(java.lang.String name)
Returns an instance of a keypair generator given its name.

Parameters:
name - the case-insensitive key generator name.
Returns:
an instance of the keypair generator, or null if none found.

getNames

public static final java.util.Set getNames()
Returns a Set of keypair generator names supported by this Factory. Those keypair generators may be used in conjunction with the digital signature schemes with appendix supported by this library.

Returns:
a Set of keypair generator names (Strings).

For the latest news and information visit
The GNU Crypto project

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