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:
- java.security.Key, java.security.KeyFactory, java.security.spec.KeySpec, java.security.spec.X509EncodedKeySpec, DHPrivateKeySpec
DHPublicKeySpec(BigInteger, BigInteger, BigInteger)
-
DHPublicKeySpec(BigInteger, BigInteger, BigInteger, int)
-
getG()
- Returns the base generator
g
.
getL()
- Returns the private-value length
l
.
getP()
- Returns the prime modulus
p
.
getY()
- Returns the public value
y
.
DHPublicKeySpec
public DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g)
DHPublicKeySpec
public DHPublicKeySpec(BigInteger y,
BigInteger p,
BigInteger g,
int l)
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
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