Package javax.crypto.spec
Class DHPrivateKeySpec
- java.lang.Object
-
- javax.crypto.spec.DHPrivateKeySpec
-
-
Constructor Summary
Constructors Constructor Description DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)Creates a newDHPrivateKeySpecwith the specified private valuex.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetG()Returns the base generatorg.BigIntegergetP()Returns the prime modulusp.BigIntegergetX()Returns the private valuex.
-
-
-
Constructor Detail
-
DHPrivateKeySpec
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
Creates a newDHPrivateKeySpecwith the specified private valuex. prime moduluspand base generatorg.- Parameters:
x- the private value.p- the prime modulus.g- the base generator.
-
-
Method Detail
-
getX
public BigInteger getX()
Returns the private valuex.- Returns:
- the private value
x.
-
getP
public BigInteger getP()
Returns the prime modulusp.- Returns:
- the prime modulus
p.
-
getG
public BigInteger getG()
Returns the base generatorg.- Returns:
- the base generator
g.
-
-