com.ibm.security12.sun.security.provider
Class DSAPublicKey
java.lang.Object
|
+--com.ibm.security12.sun.security.x509.X509Key
|
+--com.ibm.security12.sun.security.provider.DSAPublicKey
- public final class DSAPublicKey
- extends X509Key
- implements DSAPublicKey, Serializable
An X.509 public key for the Digital Signature Algorithm.
- Version:
- 1.53, 98/07/22
- Author:
- Benjamin Renaud
- See Also:
DSAPrivateKey
,
AlgIdDSA
,
DSA
, Serialized Form
Constructor Summary |
DSAPublicKey()
|
DSAPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Make a DSA public key out of a public key and three parameters. |
DSAPublicKey(byte[] encoded)
Make a DSA public key from its DER encoding (X.509). |
Method Summary |
DSAParams |
getParams()
Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed. |
java.math.BigInteger |
getY()
Get the raw public value, y, without the parameters. |
protected void |
parseKeyBits()
|
String |
toString()
|
Methods inherited from class com.ibm.security12.sun.security.x509.X509Key |
decode,
decode,
encode,
encode,
equals,
getAlgorithm,
getAlgorithmId,
getEncoded,
getFormat,
hashCode,
parse |
DSAPublicKey
public DSAPublicKey()
DSAPublicKey
public DSAPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
throws InvalidKeyException
- Make a DSA public key out of a public key and three parameters.
DSAPublicKey
public DSAPublicKey(byte[] encoded)
throws InvalidKeyException
- Make a DSA public key from its DER encoding (X.509).
getParams
public DSAParams getParams()
- Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed.
getY
public java.math.BigInteger getY()
- Get the raw public value, y, without the parameters.
- Specified by:
- getY in interface DSAPublicKey
- See Also:
getParameters
toString
public String toString()
- Overrides:
- toString in class X509Key
parseKeyBits
protected void parseKeyBits()
throws InvalidKeyException
- Overrides:
- parseKeyBits in class X509Key