FileDocCategorySizeDatePackage
DSAKeyPairGenerator.javaAPI DocAndroid 1.5 API2809Wed May 06 22:41:06 BST 2009java.security.interfaces

DSAKeyPairGenerator

public interface DSAKeyPairGenerator
The interface for key generators that can generate DSA key pairs.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidinitialize(java.security.interfaces.DSAParams params, java.security.SecureRandom random)
Initializes this generator with the prime ({@code p}), subprime ({@code q}), and base ({@code g}) values from the specified parameters.

param
params the parameter values.
param
random the source of randomness.
throws
InvalidParameterException if the specified parameter values are {@code null} or invalid.
since
Android 1.0

public voidinitialize(int modlen, boolean genParams, java.security.SecureRandom random)
Initializes this generator for the specified modulus length. Valid values for the modulus length are the multiples of 8 between 512 and 1024.

The parameter {@code genParams} specifies whether this method should generate new prime ({@code p}), subprime ({@code q}), and base ({@code g}) values or whether it will use the pre-calculated values for the specified modulus length. Default parameters are available for modulus lengths of 512 and 1024 bits.

param
modlen the length of the modulus in bits.
param
genParams whether new values should be generated.
param
random the source of randomness.
throws
InvalidParameterException if the specified modulus length is not valid, or if there are no pre-calculated values and {@code genParams} is {@code false}.
since
Android 1.0