|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.KeyPairGenerator
oracle.security.crypto.core.DHKeyPairGenerator
*** For internal use only *** Generates private/public keypairs, using the given domain parameters and RandomBitsSource
, as specified in X9.42.
Status: Provisional (may be changed in future releases.)
DHParams
, DHPublicKey
, DHPrivateKey
, DHKeyAgreement
Field Summary |
Fields inherited from class oracle.security.crypto.core.KeyPairGenerator |
rbs |
Constructor Summary | |
DHKeyPairGenerator() Constructs a new, uninitialized instance of DHKeyPairGenerator . |
Method Summary | |
KeyPair |
generateKeyPair() Generates a public/private key pair. |
java.lang.String |
getAlgorithm() Simply returns the string "Diffie-Hellman" (provided for compatibility with the contract of the abstract class KeyPairGenerator .) |
void |
initialize(DHParams params, RandomBitsSource rbs) Initializes the key pair generator with the given parameters and source of randomness. |
void |
initialize(int L, int m, RandomBitsSource rbs) Initializes the key pair generator with the given source of randomness. |
void |
initialize(int L, RandomBitsSource rbs) Initializes the key pair generator with the given source of randomness. |
void |
setAlgID(AlgorithmIdentifier algID) Assigns the given AlgorithmIdentifier to the generator; you would only want to do this use this method as a convience, if your identifier contains a set of domain parameters (for which the call would essentially be equivalent to initialize(params) .) |
Methods inherited from class oracle.security.crypto.core.KeyPairGenerator |
getInstance, getInstance, setRandomBitsSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DHKeyPairGenerator()
DHKeyPairGenerator
.Method Detail |
public void initialize(DHParams params, RandomBitsSource rbs)
params
- The DHParams
object to be used to generate key pairrbs
- A secure random bits source.public void initialize(int L, int m, RandomBitsSource rbs)
L
- The size in bits for pm
- The size in bits for qrbs
- A secure random bits source.public void initialize(int L, RandomBitsSource rbs)
initialize
in class KeyPairGenerator
L
- The size in bits for prbs
- A secure random bits source.public java.lang.String getAlgorithm()
KeyPairGenerator
.)getAlgorithm
in class KeyPairGenerator
public void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
AlgorithmIdentifier
to the generator; you would only want to do this use this method as a convience, if your identifier contains a set of domain parameters (for which the call would essentially be equivalent to initialize(params)
.)setAlgID
in class KeyPairGenerator
AlgorithmIdentifierException
public KeyPair generateKeyPair()
KeyPairGenerator
generateKeyPair
in class KeyPairGenerator
|
Oracle Security Developer Tools Crypto Java API Reference 10g Release 2 (10.1.2.0.2) B15565-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |