|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ rsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.jce.provider.rsa
Class RSAKeyPairGenerator

java.lang.Objectjava.security.KeyPairGeneratorSpi
cryptix.jce.provider.rsa.RSAKeyPairGenerator
- public final class RSAKeyPairGenerator
- extends java.security.KeyPairGeneratorSpi
Field Summary | |
private static int |
CERTAINTY
|
private static java.math.BigInteger |
F4
|
private boolean |
initialized
Initialized already? |
private int |
keysize
Keysize. |
private static int |
KEYSIZE_DEFAULT
|
private static int |
KEYSIZE_MAX
|
private static int |
KEYSIZE_MIN
|
private static java.math.BigInteger |
ONE
|
private java.math.BigInteger |
publicExponent
|
private java.security.SecureRandom |
random
|
Constructor Summary | |
RSAKeyPairGenerator()
|
Method Summary | |
java.security.KeyPair |
generateKeyPair()
Generates a KeyPair according the rules for the algorithm. |
private void |
initialize()
Initialize with default values |
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified AlgorithmParameterSpec and source of randomness This is a concrete method. |
void |
initialize(int keysize,
java.security.SecureRandom random)
Initialize the KeyPairGeneratorSpi with the specified key size and source of randomness |
Methods inherited from class java.security.KeyPairGeneratorSpi |
clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ONE
private static final java.math.BigInteger ONE
F4
private static final java.math.BigInteger F4
KEYSIZE_MIN
private static final int KEYSIZE_MIN
- See Also:
- Constant Field Values
KEYSIZE_DEFAULT
private static final int KEYSIZE_DEFAULT
- See Also:
- Constant Field Values
KEYSIZE_MAX
private static final int KEYSIZE_MAX
- See Also:
- Constant Field Values
CERTAINTY
private static final int CERTAINTY
- See Also:
- Constant Field Values
keysize
private int keysize
- Keysize.
publicExponent
private java.math.BigInteger publicExponent
random
private java.security.SecureRandom random
initialized
private boolean initialized
- Initialized already?
Constructor Detail |
RSAKeyPairGenerator
public RSAKeyPairGenerator()
Method Detail |
initialize
public void initialize(int keysize, java.security.SecureRandom random)
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Initialize the KeyPairGeneratorSpi with the specified
key size and source of randomness
initialize
public void initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Initialize the KeyPairGeneratorSpi with the specified
AlgorithmParameterSpec and source of randomness
This is a concrete method. It may be overridden by the provider
and if the AlgorithmParameterSpec class is invalid
throw InvalidAlgorithmParameterException. By default this
method just throws UnsupportedOperationException.
generateKeyPair
public java.security.KeyPair generateKeyPair()
- Description copied from class:
java.security.KeyPairGeneratorSpi
- Generates a KeyPair according the rules for the algorithm.
Unless intialized, algorithm defaults will be used. It
creates a unique key pair each time.
initialize
private void initialize()
- Initialize with default values
|
|||||||||
Home >> All >> cryptix >> jce >> provider >> [ rsa overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |