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

Variable Index

 o ident

Constructor Index

 o DHPrivateKeySpec(BigInteger, BigInteger, BigInteger)
standard constructor.

Method Index

 o getG()
Returns the base generator g.
 o getP()
Returns the prime modulus p.
 o getX()
Returns the private value x.

Variables

 o ident
 public static final String ident

Constructors

 o DHPrivateKeySpec
 public DHPrivateKeySpec(BigInteger x,
                         BigInteger p,
                         BigInteger g)
standard constructor.

Parameters:
x - the private value.
p - the prime modulus.
g - the base generator.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index