Package javax.crypto.spec
Class DHPublicKeySpec
- java.lang.Object
-
- javax.crypto.spec.DHPublicKeySpec
-
-
Constructor Summary
Constructors Constructor Description DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)Creates a newDHPublicKeySpecinstance with the specified public valuey, the prime moduluspand the base generatorg.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetG()Returns the base generatorg;BigIntegergetP()Returns the prime modulusp.BigIntegergetY()Returns the public valuey.
-
-
-
Constructor Detail
-
DHPublicKeySpec
public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
Creates a newDHPublicKeySpecinstance with the specified public valuey, the prime moduluspand the base generatorg.- Parameters:
y- the public value.p- the prime modulus.g- the base generator.
-
-
Method Detail
-
getY
public BigInteger getY()
Returns the public valuey.- Returns:
- the public value
y.
-
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;
-
-