gnu.crypto.jce.sig
Class KeyPairGeneratorAdapter
KeyPairGeneratorSpi
gnu.crypto.jce.sig.KeyPairGeneratorAdapter
(package private) abstract class KeyPairGeneratorAdapter
extends KeyPairGeneratorSpi
The implementation of a generic
java.security.KeyPairGenerator
adapter class to wrap gnu.crypto keypair generator instances.
This class defines the
Service Provider Interface (
SPI) for the
java.security.KeyPairGenerator
class, which is used to generate pairs
of public and private keys.
All the abstract methods in the
java.security.KeyPairGeneratorSpi
class are implemented by this class and all its sub-classes.
In case the client does not explicitly initialize the KeyPairGenerator (via
a call to an
initialize()
method), the GNU Crypto provider
supplies (and document) default values to be used. For example, the GNU
Crypto provider uses a default
modulus size (keysize) of 1024 bits for
the DSS (Digital Signature Standard) a.k.a
DSA.
Version:
KeyPairGeneratorAdapter
protected KeyPairGeneratorAdapter(String kpgName)
Trivial protected constructor.
kpgName
- the canonical name of the keypair generator algorithm.
generateKeyPair
public KeyPair generateKeyPair()
initialize
public void initialize(AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidAlgorithmParameterException
initialize
public void initialize(int keysize,
SecureRandom random)
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.