public final class DSAPublicKey
extends com.ibm.security.x509.X509Key
implements java.security.interfaces.DSAPublicKey, java.io.Serializable
| Constructor and Description |
|---|
DSAPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Create a new DSA public key from y, p, q, and g.
|
DSAPublicKey(byte[] encoded)
Make a DSA public key from its DER encoding (X.509).
|
| Modifier and Type | Method and Description |
|---|---|
java.security.interfaces.DSAParams |
getParams()
Return the DSA parameters for the receiver.
|
java.math.BigInteger |
getY()
Return the value of the public key.
|
java.lang.String |
toString() |
void |
zeroize()
This function zeroizes the key so that it isn't in memory
|
public DSAPublicKey(java.math.BigInteger y,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
throws java.security.InvalidKeyException
y - public keyp - prime modulusq - prime divisorg - the number gjava.security.InvalidKeyExceptionpublic DSAPublicKey(byte[] encoded)
throws java.security.InvalidKeyException
encoded - the encoded bytes of the public keyjava.security.InvalidKeyExceptionpublic java.math.BigInteger getY()
getY in interface java.security.interfaces.DSAPublicKeythe - value of ypublic java.security.interfaces.DSAParams getParams()
getParams in interface java.security.interfaces.DSAKeypublic java.lang.String toString()
toString in class com.ibm.security.x509.X509Keypublic void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.