O'Reilly logo

Java Security by Scott Oaks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Class javax.crypto.spec.DHParameterSpec

Synopsis

This class encapsulates the public parameters used in the Diffie-Hellman key agreement protocol. Instances of this class can be passed to the algorithm-specific initialization methods of a key pair generator.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required