Save This Page
Home » openjdk-7 » javax » crypto » spec » [javadoc | source]
javax.crypto.spec
public class: DHGenParameterSpec [javadoc | source]
java.lang.Object
   javax.crypto.spec.DHGenParameterSpec

All Implemented Interfaces:
    AlgorithmParameterSpec

This class specifies the set of parameters used for generating Diffie-Hellman (system) parameters for use in Diffie-Hellman key agreement. This is typically done by a central authority.

The central authority, after computing the parameters, must send this information to the parties looking to agree on a secret key.

Constructor:
 public DHGenParameterSpec(int primeSize,
    int exponentSize) 
    Parameters:
    primeSize - the size (in bits) of the prime modulus.
    exponentSize - the size (in bits) of the random exponent.
Method from javax.crypto.spec.DHGenParameterSpec Summary:
getExponentSize,   getPrimeSize
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.crypto.spec.DHGenParameterSpec Detail:
 public int getExponentSize() 
    Returns the size in bits of the random exponent (private value).
 public int getPrimeSize() 
    Returns the size in bits of the prime modulus.