|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.KeyPairGenerator
public abstract class KeyPairGenerator
An abstract class for randomly generating public/private key pairs.
This class has a factory method, getInstance
, which can be used to create an instance for a particular algorithm.
Field Summary | |
---|---|
protected RandomBitsSource |
rbs The source of randomness for the KeyPairGenerator . |
Constructor Summary | |
---|---|
protected |
KeyPairGenerator() Empty constructor. |
Method Summary | |
---|---|
abstract KeyPair |
generateKeyPair() Generates a public/private key pair. |
abstract java.lang.String |
getAlgorithm() Returns the name of the algorithm for which the generated keys can be used. |
static KeyPairGenerator |
getInstance(AlgorithmIdentifier algID) Return a KeyPairGenerator for the given AlgorithmIdentifier . |
abstract void |
initialize(int strength, RandomBitsSource rbs) Initializes the key pair generator with the given source of randomness. |
abstract void |
setAlgID(AlgorithmIdentifier algID) Called by getInstance(oracle.security.crypto.core.AlgorithmIdentifier) to initialize the key pair generator using the algorithm identifier and its parameters (if any). |
void |
setRandomBitsSource(RandomBitsSource rbs) Sets the RandomBitsSource . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RandomBitsSource rbs
KeyPairGenerator
.Constructor Detail |
---|
protected KeyPairGenerator()
Method Detail |
---|
public void setRandomBitsSource(RandomBitsSource rbs)
RandomBitsSource
.public abstract void initialize(int strength, RandomBitsSource rbs)
strength
- Indicates the size of the generated keys in an algorithm-specific way.rbs
- A secure random bits source.public abstract void setAlgID(AlgorithmIdentifier algID) throws AlgorithmIdentifierException
getInstance(oracle.security.crypto.core.AlgorithmIdentifier)
to initialize the key pair generator using the algorithm identifier and its parameters (if any).AlgorithmIdentifierException
public abstract KeyPair generateKeyPair()
public abstract java.lang.String getAlgorithm()
public static KeyPairGenerator getInstance(AlgorithmIdentifier algID) throws java.lang.IllegalArgumentException
KeyPairGenerator
for the given AlgorithmIdentifier
.IllegalArgumentException
- if no KeyPairGenerator
is registered for the algorithm ID.java.lang.IllegalArgumentException
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |