Team LiB
Previous Section Next Section

DHPrivateKeySpecjavax.crypto.spec

Java 1.4

This java.security.spec.KeySpec is a transparent representation of a Diffie-Hellman private key.

Figure 17-19. javax.crypto.spec.DHPrivateKeySpec


public class DHPrivateKeySpec implements java.security.spec.KeySpec {
// Public Constructors
     public DHPrivateKeySpec(java.math.BigInteger x, 
        java.math.BigInteger p, 
        java.math.BigInteger g);  
// Public Instance Methods
     public java.math.BigInteger getG( );  
     public java.math.BigInteger getP( );  
     public java.math.BigInteger getX( );  
}

    Team LiB
    Previous Section Next Section