All Packages Class Hierarchy This Package Previous Next Index
Class javax.crypto.spec.DHPublicKeySpec
java.lang.Object
|
+----javax.crypto.spec.DHPublicKeySpec
- public class DHPublicKeySpec
- extends Object
- implements KeySpec
This class specifies a Diffie-Hellman public key with its associated
parameters.
- See Also:
- DHPrivateKeySpec
-
ident
-
-
DHPublicKeySpec(BigInteger, BigInteger, BigInteger)
- basic constructor.
-
getG()
- Returns the base generator g.
-
getP()
- Returns the prime modulus p.
-
getY()
- Returns the public value y.
ident
public static final String ident
DHPublicKeySpec
public DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g)
- basic constructor.
- Parameters:
- y - the public value.
- p - the prime modulus.
- g - the base generator.
getY
public BigInteger getY()
- Returns the public value y.
- Returns:
- the public value y
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