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
-
ident
-
-
DHPrivateKeySpec(BigInteger, BigInteger, BigInteger)
- standard constructor.
-
getG()
- Returns the base generator g.
-
getP()
- Returns the prime modulus p.
-
getX()
- Returns the private value x.
ident
public static final String ident
DHPrivateKeySpec
public DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
- standard constructor.
- Parameters:
- x - the private value.
- p - the prime modulus.
- g - the base generator.
getX
public BigInteger getX()
- Returns the private value x.
- Returns:
- the private value x
getP
public BigInteger getP()
- Returns the prime modulus p.
- Returns:
- the prime modulus p
getG
public BigInteger getG()
- Returns the base generator g.
- Returns:
- the base generator g
All Packages Class Hierarchy This Package Previous Next Index