|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 |
||||||||
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.RSAKeyPairGenerator
public final class RSAKeyPairGenerator
RSA key pair generator.
Field Summary |
---|
Fields inherited from class oracle.security.crypto.core.KeyPairGenerator |
---|
rbs |
Constructor Summary | |
---|---|
RSAKeyPairGenerator() Creates a new, uninitialized RSAKeyPairGenerator . |
Method Summary | |
---|---|
KeyPair |
generateKeyPair() Generates a public/private key pair. |
java.lang.String |
getAlgorithm() Returns "RSA". |
void |
initialize(int strength, RandomBitsSource rbs) Initializes the key pair generator with the given strength and source of randomness. |
void |
setAlgID(AlgorithmIdentifier keyAlgID) Throws an exception if the algothrithm identifier OID is not that of AlgID.rsaEncryption , otherwise does nothing. |
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 RSAKeyPairGenerator()
RSAKeyPairGenerator
.Method Detail |
---|
public void setAlgID(AlgorithmIdentifier keyAlgID) throws AlgorithmIdentifierException
AlgID.rsaEncryption
, otherwise does nothing.setAlgID
in class KeyPairGenerator
AlgorithmIdentifierException
public void initialize(int strength, RandomBitsSource rbs)
initialize
in class KeyPairGenerator
strength
- Sets the length in bits of the public modulus.rbs
- A secure random bits source.public KeyPair generateKeyPair()
KeyPairGenerator
generateKeyPair
in class KeyPairGenerator
public java.lang.String getAlgorithm()
getAlgorithm
in class KeyPairGenerator
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |