FileDocCategorySizeDatePackage
DHGenParameterSpec.javaAPI DocAndroid 1.5 API2064Wed May 06 22:41:02 BST 2009javax.crypto.spec

DHGenParameterSpec

public class DHGenParameterSpec extends Object implements AlgorithmParameterSpec
The algorithm parameter specification for generating Diffie-Hellman parameters used in Diffie-Hellman key agreement.
since
Android 1.0

Fields Summary
private final int
primeSize
private final int
exponentSize
Constructors Summary
public DHGenParameterSpec(int primeSize, int exponentSize)
Creates a new DHGenParameterSpec instance with the specified parameters.

param
primeSize the size of the prime modulus in bits.
param
exponentSize the size of the random exponent in bits.

        this.primeSize = primeSize;
        this.exponentSize = exponentSize;
    
Methods Summary
public intgetExponentSize()
Returns the size of the random exponent in bits.

return
the size of the random exponent in bits.

        return exponentSize;
    
public intgetPrimeSize()
Returns the size of the prime modulus in bits.

return
the size of the prime modulus in bits.

        return primeSize;