Team LiB
Previous Section Next Section

DHGenParameterSpecjavax.crypto.spec

Java 1.4

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.

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( );  
}

    Team LiB
    Previous Section Next Section