com.motorola.iden.provider
Class DHKeyPairGen

java.lang.Object
  |
  +--com.motorola.iden.security.KeyPairGeneratorSpi
        |
        +--com.motorola.iden.provider.DHKeyPairGen

public class DHKeyPairGen
extends KeyPairGeneratorSpi

The class is to generate the DH key pair.

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.

See Also:
[CipherSpi]

Constructor Summary
DHKeyPairGen()
           
 
Method Summary
protected  KeyPair engineGenerateKeyPair()
          Generates a key pair.
protected  void engineInitialize(AlgorithmParameterSpec params)
          Initializes the key pair generator using the specified parameter set.
protected  void engineInitialize(int keysize)
          Do not use this function to initialize dh key generator or InvalidAlgorithmParameterException will be thrown.
protected  void finalize()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHKeyPairGen

public DHKeyPairGen()
Method Detail

engineInitialize

protected final void engineInitialize(int keysize)
                               throws InvalidAlgorithmParameterException
Do not use this function to initialize dh key generator or InvalidAlgorithmParameterException will be thrown.

Overrides:
engineInitialize in class KeyPairGeneratorSpi
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 final void engineInitialize(AlgorithmParameterSpec params)
                               throws InvalidAlgorithmParameterException
Initializes the key pair generator using the specified parameter set.

Overrides:
engineInitialize in class KeyPairGeneratorSpi
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 final KeyPair engineGenerateKeyPair()
Generates a key pair.

Overrides:
engineGenerateKeyPair in class KeyPairGeneratorSpi
Returns:
the newly generated KeyPair

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object