com.ibm.security12.java.security.spec
Class DSAPublicKeySpec
java.lang.Object
|
+--com.ibm.security12.java.security.spec.DSAPublicKeySpec
- public class DSAPublicKeySpec
- extends Object
- implements KeySpec
This class specifies a DSA public key with its associated parameters.
- Since:
- JDK1.2
- Version:
- 1.9, 98/07/22
- Author:
- Jan Luehe
- See Also:
com.ibm.security12.java.security.Key
,
KeyFactory
,
KeySpec
,
DSAPrivateKeySpec
,
X509EncodedKeySpec
Constructor Summary |
DSAPublicKeySpec(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Creates a new DSAPublicKeySpec with the specified parameter values. |
Method Summary |
java.math.BigInteger |
getG()
Returns the base g . |
java.math.BigInteger |
getP()
Returns the prime p . |
java.math.BigInteger |
getQ()
Returns the sub-prime q . |
java.math.BigInteger |
getY()
Returns the public key y . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DSAPublicKeySpec
public DSAPublicKeySpec(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
- Creates a new DSAPublicKeySpec with the specified parameter values.
- Parameters:
y
- the public key.p
- the prime.q
- the sub-prime.g
- the base.
getY
public java.math.BigInteger getY()
- Returns the public key
y
.
- Returns:
- the public key
y
.
getP
public java.math.BigInteger getP()
- Returns the prime
p
.
- Returns:
- the prime
p
.
getQ
public java.math.BigInteger getQ()
- Returns the sub-prime
q
.
- Returns:
- the sub-prime
q
.
getG
public java.math.BigInteger getG()
- Returns the base
g
.
- Returns:
- the base
g
.