Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-04


oracle.security.crypto.core
Class RSAKeyPairGenerator

java.lang.Object
  extended by oracle.security.crypto.core.KeyPairGenerator
      extended by oracle.security.crypto.core.RSAKeyPairGenerator


public final class RSAKeyPairGenerator
extends KeyPairGenerator

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

RSAKeyPairGenerator

public RSAKeyPairGenerator()
Creates a new, uninitialized RSAKeyPairGenerator.

Method Detail

setAlgID

public void setAlgID(AlgorithmIdentifier keyAlgID)
              throws AlgorithmIdentifierException
Throws an exception if the algothrithm identifier OID is not that of AlgID.rsaEncryption, otherwise does nothing.
Specified by:
setAlgID in class KeyPairGenerator
Throws:
AlgorithmIdentifierException

initialize

public void initialize(int strength,
                       RandomBitsSource rbs)
Initializes the key pair generator with the given strength and source of randomness.
Specified by:
initialize in class KeyPairGenerator
Parameters:
strength - Sets the length in bits of the public modulus.
rbs - A secure random bits source.

generateKeyPair

public KeyPair generateKeyPair()
Description copied from class: KeyPairGenerator
Generates a public/private key pair.
Specified by:
generateKeyPair in class KeyPairGenerator

getAlgorithm

public java.lang.String getAlgorithm()
Returns "RSA".
Specified by:
getAlgorithm in class KeyPairGenerator

Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-04


Copyright © 2005, 2011 , Oracle. All rights reserved.