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
-
DHPrivateKeySpec(BigInteger, BigInteger, BigInteger)
-
-
DHPrivateKeySpec(BigInteger, BigInteger, BigInteger, int)
-
-
getG()
- Returns the base generator
g
.
-
getL()
- Returns the private-value length
l
.
-
getP()
- Returns the prime modulus
p
.
-
getX()
- Returns the private value
x
.
DHPrivateKeySpec
public DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g)
DHPrivateKeySpec
public DHPrivateKeySpec(BigInteger x,
BigInteger p,
BigInteger g,
int l)
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
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