com.ibm.crypto.fips.provider
Class RSAKeyPairGenerator
- java.lang.Object
java.security.KeyPairGeneratorSpi
com.ibm.crypto.fips.provider.RSAKeyPairGenerator
All implemented interfaces:
- public final class RSAKeyPairGenerator
- extends java.security.KeyPairGeneratorSpi
- implements AlgorithmStatus
Constructor Summary
| Constructor and Description |
|---|
RSAKeyPairGenerator()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
generateKeyPair()
|
|
initialize(java.security.spec.AlgorithmParameterSpec params,java.security.SecureRandom random)
|
|
initialize(int strength)
|
|
initialize(int strength,java.security.SecureRandom random)
Initializes this KeyPairGenerator for given modulus and random source
|
|
internalGenerateKeyPair()
|
|
isFipsApproved()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
RSAKeyPairGenerator
- public RSAKeyPairGenerator()
Method Detail
initialize
- public void initialize(java.security.spec.AlgorithmParameterSpec params,
- java.security.SecureRandom random)
- throws java.security.InvalidAlgorithmParameterException
Overrides:
initialize in class java.security.KeyPairGeneratorSpi
Throws:
java.security.InvalidAlgorithmParameterExceptioninitialize
- public void initialize(int strength,
- java.security.SecureRandom random)
Initializes this KeyPairGenerator for given modulus and random source
Specified by:
initialize in class java.security.KeyPairGeneratorSpi
Parameters:
strength - the length of the key to be generated random - the SecureRandom object for generating random number initialize
- public void initialize(int strength)
isFipsApproved
- public boolean isFipsApproved()
Description copied from interface:
AlgorithmStatus
Module identifies if the cryptographic operation (algorithm) is FIPS certified
Specified by:
isFipsApproved in interface AlgorithmStatus
See Also:
generateKeyPair
- public java.security.KeyPair generateKeyPair( )
Specified by:
generateKeyPair in class java.security.KeyPairGeneratorSpi
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false. internalGenerateKeyPair
- protected java.security.KeyPair internalGenerateKeyPair( )