Name
Class javax.crypto.spec.DHParameterSpec
Description
This class encapsulates the public parameters used in the
Diffie-Hellman key agreement protocol. Typically, an application uses
a standard modulus and base to generate Diffie-Hellman keys. This
class encapsulates the modulus (getP()
) and the
base (getG()
). Instances of this class can be
passed to the algorithm-specific initialization methods of
KeyPairGenerator
.
Class Definition
public class javax.crypto.spec.DHParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec { // Constructors public DHParameterSpec(BigInteger, BigInteger); public DHParameterSpec(BigInteger, BigInteger, int); // Instance Methods public BigInteger getG(); public int getL(); public BigInteger getP(); }
See Also
AlgorithmParameterSpec
,
KeyPairGenerator
Get Java Cryptography 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.