Name

Class javax.crypto.spec.DHPublicKeySpec

Synopsis

This class represents a key specification for Diffie-Hellman public keys. It can be used with a key factory to import and export Diffie-Hellman keys.

Class Definition

public class javax.crypto.spec.DHPublicKeySpec
	extends java.lang.Object
	implements java.security.spec.KeySpec {

	// Constructors
	public DHPublicKeySpec(BigInteger, BigInteger, BigInteger);
	public DHPublicKeySpec(BigInteger, BigInteger, BigInteger, int);

	// Instance Methods
	public BigInteger getG(  );
	public int getL(  );
	public BigInteger getP(  );
	public BigInteger getY(  );
}

See also

DHParameterSpec, DHPrivateKeySpec, KeySpec

Get Java Security, 2nd 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.