The difference between DSAPublicKeyImpl and DSAPublicKey is that DSAPublicKeyImpl calls writeReplace with KeyRep, and DSAPublicKey calls writeObject.
See the comments in DSAKeyFactory, 4532506, and 6232513.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DSAPublicKeyImpl(BigInteger
the actual key bits y, BigInteger DSA parameter p, may be null if all of p, q, and g are null. p, BigInteger DSA parameter q, may be null if all of p, q, and g are null. q, BigInteger DSA parameter g, may be null if all of p, q, and g are null. g)Make a DSA public key out of a public key and three parameters. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readHides sun. Restores the state of this object from the stream. |
| private Object |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides sun. | |
| DSAPublicKeyImpl | back to summary |
|---|---|
| public DSAPublicKeyImpl(BigInteger y, BigInteger p, BigInteger q, BigInteger g) throws InvalidKeyException Make a DSA public key out of a public key and three parameters. The p, q, and g parameters may be null, but if so, parameters will need to be supplied from some other source before this key can be used in cryptographic operations. PKIX RFC2459bis explicitly allows DSA public keys without parameters, where the parameters are provided in the issuer's DSA public key.
| |
| DSAPublicKeyImpl | back to summary |
|---|---|
| public DSAPublicKeyImpl(byte[] encoded) throws InvalidKeyException Make a DSA public key from its DER encoding (X.509). | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides sun. Restores the state of this object from the stream. Deserialization of this object is not supported.
| |
| writeReplace | back to summary |
|---|---|
private Object writeReplace() throws ObjectStreamException
| |