Name
DHParameterSpec
Synopsis
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( )
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.