Name

Class javax.crypto.spec.DHPublicKeySpec

Description

This class represents a public key for the Diffie-Hellman key agreement protocol. It can be used with a KeyFactory to convert between Diffie-Hellman parameters and PublicKeys.

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 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.