public final class RSAKeyPairGenerator extends java.security.KeyPairGeneratorSpi implements AlgorithmStatus
Constructor and Description |
---|
RSAKeyPairGenerator() |
Modifier and Type | Method and Description |
---|---|
java.security.KeyPair |
generateKeyPair() |
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
void |
initialize(int strength) |
void |
initialize(int strength,
java.security.SecureRandom random)
Initializes this KeyPairGenerator for given modulus and random source
|
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified
|
public void initialize(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
initialize
in class java.security.KeyPairGeneratorSpi
java.security.InvalidAlgorithmParameterException
public void initialize(int strength, java.security.SecureRandom random)
initialize
in class java.security.KeyPairGeneratorSpi
strength
- the length of the key to be generatedrandom
- the SecureRandom object for generating random numberpublic void initialize(int strength)
public boolean isFipsApproved()
AlgorithmStatus
isFipsApproved
in interface AlgorithmStatus
AlgorithmStatus.isFipsApproved()
public java.security.KeyPair generateKeyPair()
generateKeyPair
in class java.security.KeyPairGeneratorSpi
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.