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

All Implemented Interfaces:

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.

 public DHGenParameterSpec(int primeSize,
    int exponentSize) 
    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.