Name

DHGenParameterSpec

Synopsis

This class is a transparent representation of the values needed to generate a set of Diffie-Hellman parameters (see DHParameterSpec). An instance of this class can be passed to the init( ) method of a java.security.AlgorithmParameterGenerator that computes Diffie-Hellman parameters.

javax.crypto.spec.DHGenParameterSpec

Figure 17-17. javax.crypto.spec.DHGenParameterSpec

public class DHGenParameterSpec implements java.security.spec.AlgorithmParameterSpec {
// Public Constructors
     public DHGenParameterSpec(int primeSize, int exponentSize);  
// Public Instance Methods
     public int getExponentSize( );  
     public int getPrimeSize( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.