|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.security.KeyPairGeneratorSpi
com.ibm.crypto.provider.DHKeyPairGenerator
This class represents the key pair generator for Diffie-Hellman key pairs.
This key pair generator may be initialized in two different ways:
KeyPairGenerator| Constructor Summary | |
|---|---|
DHKeyPairGenerator()
|
|
| Method Summary | |
|---|---|
KeyPair |
generateKeyPair()
Generates a key pair. |
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initializes this key pair generator for the specified parameter set and source of randomness. |
void |
initialize(int keysize,
SecureRandom random)
Initializes this key pair generator for a certain keysize and source of randomness. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DHKeyPairGenerator()
| Method Detail |
public void initialize(int keysize,
SecureRandom random)
keysize - the keysize (size of prime modulus) in bitsrandom - the source of randomness
public void initialize(AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidAlgorithmParameterException
The given parameter set contains the prime modulus, the base generator, and optionally the requested size in bits of the random exponent (private value).
params - the parameter set used to generate the key pairrandom - the source of randomness
w
InvalidAlgorithmParameterException - if the given parameters
are inappropriate for this key pair generatorpublic KeyPair generateKeyPair()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||