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.
| 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() {
return this.exponentSize;
}
Returns the size in bits of the random exponent (private value). |
public int getPrimeSize() {
return this.primeSize;
}
Returns the size in bits of the prime modulus. |