DHParameterSpec


DHParameterSpec javax.crypto.spec

Java 1.4

This class is a transparent representation of the set of parameters required by the Diffie-Hellman key-agreement algorithm. All parties to the key agreement must share these parameters and use them to generate a Diffie-Hellman public/private key pair.

Figure 17-18. javax.crypto.spec.DHParameterSpec

 public class  DHParameterSpec  implements java.security.spec.AlgorithmParameterSpec {  // Public Constructors  public  DHParameterSpec  (java.math.BigInteger  p  , java.math.BigInteger  g  );        public  DHParameterSpec  (java.math.BigInteger  p  , java.math.BigInteger  g  , int  l  );  // Public Instance Methods  public java.math.BigInteger  getG  ( );        public int  getL  ( );        public java.math.BigInteger  getP  ( );   } 

Returned By

javax.crypto.interfaces.DHKey.getParams( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net