|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DSAKeyPairGenerator
This interface contains methods for intializing a Digital Signature Algorithm key generation engine. The initialize methods may be called any number of times. If no explicity initialization call is made, then the engine defaults to generating 1024-bit keys using pre-calculated base, prime, and subprime values.
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. |
Method Detail |
---|
void initialize(DSAParams params, SecureRandom random) throws InvalidParameterException
params
- The DSA parameters to userandom
- The random bit source to use
InvalidParameterException
- If the parameters passed are not validvoid initialize(int modlen, boolean genParams, SecureRandom random) throws InvalidParameterException
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.
modlen
- The modulus lengthgenParams
- true
to generate new DSA parameters, false
otherwiserandom
- The random bit source to use
InvalidParameterException
- If a parameter is invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |