com.motorola.iden.security
Class KeyPairGeneratorSpi
java.lang.Object
|
+--com.motorola.iden.security.KeyPairGeneratorSpi
- Direct Known Subclasses:
- DHKeyPairGen, ECCKeyPairGen
- public abstract class KeyPairGeneratorSpi
- extends java.lang.Object
This class defines the Service Provider Interface (SPI)
for the KeyPairGenerator
class, which is used to generate
pairs of public and private keys.
All the abstract methods in this class must be implemented by each
cryptographic service provider who wishes to supply the implementation
of a key pair generator for a particular algorithm.
MOTOROLA and the Stylized M Logo are registered trademarks of
Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2002 - 2004 Motorola, Inc. All Rights Reserved.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyPairGeneratorSpi
public KeyPairGeneratorSpi()
engineInitialize
protected abstract void engineInitialize(int keysize)
throws InvalidAlgorithmParameterException
- Initializes the key pair generator for a certain keysize, using
the default parameter set.Method/Constructor description
- Parameters:
keysize
- the keysize. This is an
algorithm-specific metric, such as modulus length, specified in
number of bits.
- Throws:
InvalidAlgorithmParameterException
- if the keysize
is not
supported by this KeyPairGeneratorSpi object.
engineInitialize
protected abstract void engineInitialize(AlgorithmParameterSpec params)
throws InvalidAlgorithmParameterException
- Initializes the key pair generator using the specified parameter
set.
- Parameters:
params
- the parameter set used to generate the keys.
- Throws:
InvalidAlgorithmParameterException
- if the given parameters
are inappropriate for this key pair generator.
engineGenerateKeyPair
protected abstract KeyPair engineGenerateKeyPair()
- Generates a key pair.
- Returns:
- the newly generated KeyPair