All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.crypto.spec.DHPrivateKeySpec

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

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

See Also:
Key, KeyFactory, KeySpec, PKCS8EncodedKeySpec, DHPublicKeySpec

Constructor Index

 o DHPrivateKeySpec(BigInteger, BigInteger, BigInteger)
 o DHPrivateKeySpec(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 getX()
Returns the private value x.

Constructors

 o DHPrivateKeySpec
 public DHPrivateKeySpec(BigInteger x,
                         BigInteger p,
                         BigInteger g)
 o DHPrivateKeySpec
 public DHPrivateKeySpec(BigInteger x,
                         BigInteger p,
                         BigInteger g,
                         int l)

Methods

 o getX
 public BigInteger getX()
Returns the private value x.

Returns:
the private value x
 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