All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.crypto.spec.DHPublicKeySpec

java.lang.Object
   |
   +----javax.crypto.spec.DHPublicKeySpec

public class DHPublicKeySpec
extends Object
implements KeySpec
This class specifies a Diffie-Hellman public key with its associated parameters.

See Also:
DHPrivateKeySpec

Variable Index

 o ident

Constructor Index

 o DHPublicKeySpec(BigInteger, BigInteger, BigInteger)
basic constructor.

Method Index

 o getG()
Returns the base generator g.
 o getP()
Returns the prime modulus p.
 o getY()
Returns the public value y.

Variables

 o ident
 public static final String ident

Constructors

 o DHPublicKeySpec
 public DHPublicKeySpec(BigInteger y,
                        BigInteger p,
                        BigInteger g)
basic constructor.

Parameters:
y - the public value.
p - the prime modulus.
g - the base generator.

Methods

 o getY
 public BigInteger getY()
Returns the public value y.

Returns:
the public value y
 o getP
 public BigInteger getP()
Returns the prime modulus p.

Returns:
the prime modulus p
 o getG
 public BigInteger getG()
Returns the base generator g.

Returns:
the base generator g

All Packages  Class Hierarchy  This Package  Previous  Next  Index