xjava.security.interfaces
public interface RSAKeyPairGenerator
Users wishing to indicate the public exponent, and to generate a key pair suitable for use with the RSA algorithm typically
getInstance
method with "RSA"
as its argument.
initialize
method from this RSAKeyPairGenerator interface.
generateKeyPair
method from the KeyPairGenerator
class, as often as desired.
Note: it is not always necessary to do algorithm-specific
initialization for an RSA key pair generator. That is, it is not always
necessary to call the initialize
method in this interface.
Algorithm-independent initialization using the initialize
method in the KeyPairGenerator interface is all that is needed when you
accept defaults for algorithm-specific parameters.
$Revision: 1.2 $
Since: IJCE 1.0
See Also: java.security.KeyPairGenerator
Method Summary | |
---|---|
void | initialize(int strength, BigInteger publicExponent, SecureRandom random)
Initializes the key pair generator using the specified "strength"
(desired key length in bits), public exponent, and source of random
bits. |