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:
Key, KeyFactory, KeySpec, X509EncodedKeySpec, DHPrivateKeySpec

Constructor Index

 o DHPublicKeySpec(BigInteger, BigInteger, BigInteger)
 o DHPublicKeySpec(BigInteger, BigInteger, BigInteger, int)

Method Index

 o getG()
Returns the base generator g.
 o getL()
Returns the private-value length l.
 o getP()
Returns the prime modulus p.
 o getY()
Returns the public value y.

Constructors

 o DHPublicKeySpec
 public DHPublicKeySpec(BigInteger y,
                        BigInteger p,
                        BigInteger g)
 o DHPublicKeySpec
 public DHPublicKeySpec(BigInteger y,
                        BigInteger p,
                        BigInteger g,
                        int l)

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
 o getL
 public int getL()
Returns the private-value length l.

Returns:
the private-value length l, or null if l has not been set

All Packages  Class Hierarchy  This Package  Previous  Next  Index