java.security.interfaces
public interface DSAKeyPairGenerator
| Method Summary | |
|---|---|
| void | initialize(DSAParams params, SecureRandom random)
Initializes the key generator with the specified DSA parameters and
random bit source
|
| void | initialize(int modlen, boolean genParams, SecureRandom random)
Initializes the key generator to a give modulus. |
Parameters: params The DSA parameters to use random The random bit source to use
Throws: InvalidParameterException If the parameters passed are not valid
genParams
value is true then new base, prime, and subprime values
will be generated for the given modulus. If not, the pre-calculated
values will be used. If no pre-calculated values exist for the specified
modulus, an exception will be thrown. It is guaranteed that there will
always be pre-calculated values for all modulus values between 512 and
1024 bits inclusives.
Parameters: modlen The modulus length genParams true to generate new DSA parameters, false otherwise random The random bit source to use
Throws: InvalidParameterException If a parameter is invalid