|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
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
public class DHKeyPairGenerator
Generates private/public keypairs, using the given domain parameters and RandomBitsSource
, as specified in X9.42.
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() Returns the string "Diffie-Hellman". |
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) Seta the domain parameters contained in the given AlgorithmIdentifier for this KeyPairGenerator . |
Methods inherited from class oracle.security.crypto.core.KeyPairGenerator |
---|
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 pair.rbs
- A secure random bits source.public void initialize(int L, int m, RandomBitsSource rbs)
L
- The size in bits for p.m
- The size in bits for q.rbs
- A secure random bits source.public void initialize(int L, RandomBitsSource rbs)
initialize
in class KeyPairGenerator
L
- The size in bits for p.rbs
- A secure random bits source.public java.lang.String getAlgorithm()
getAlgorithm
in class KeyPairGenerator
public void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
AlgorithmIdentifier
for this KeyPairGenerator
.setAlgID
in class KeyPairGenerator
algID
- An AlgorithmIdentifier
containing valid domain parameters for this KeyPairGenerator
.AlgorithmIdentifierException
public KeyPair generateKeyPair()
KeyPairGenerator
generateKeyPair
in class KeyPairGenerator
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |