|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.KeyPairGeneratorSpi
com.ibm.crypto.pkcs11impl.provider.RSAPKCS11KeyPairGenerator
public final class RSAPKCS11KeyPairGenerator
This class generates RSA public/private key pairs. Note: There is a very small chance that an ArithmeticException being thrown during generateKeyPair().
| Constructor Summary | |
|---|---|
RSAPKCS11KeyPairGenerator()
Creates a new instance of this class. |
|
RSAPKCS11KeyPairGenerator(java.security.Provider provider)
Creates a new instance of this class. |
|
| Method Summary | |
|---|---|
java.security.KeyPair |
generateKeyPair()
Generates a Key Pair |
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
RSAPKCS11KeyPairGenerator requires Algorithm Parameters of type PKCS11RSAKeyPairParameter |
void |
initialize(int strength)
Initializes this KeyPairGenerator for given modulus. |
void |
initialize(int strength,
java.security.SecureRandom random)
Initializes this KeyPairGenerator for given modulus and random source. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RSAPKCS11KeyPairGenerator(java.security.Provider provider)
public RSAPKCS11KeyPairGenerator()
| Method Detail |
|---|
public void initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
initialize in class java.security.KeyPairGeneratorSpiparams - Algorithm Parameters of type PKCS11RSAKeyPairParameterrandom - which is not used and can be set to null.
java.security.InvalidAlgorithmParameterException - is thrown if params is
null or not an instance of PKCS11RSAKeyPairParameter
public void initialize(int strength,
java.security.SecureRandom random)
initialize in class java.security.KeyPairGeneratorSpistrength - is the size of the modulu.random - which is not used and can be set to null.
java.security.InvalidParameterException - if strength is invalidpublic void initialize(int strength)
strength - is the size of the modulu.
java.security.InvalidParameterException - if strength is invalidpublic java.security.KeyPair generateKeyPair()
generateKeyPair in class java.security.KeyPairGeneratorSpi
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||