APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.provider

public final Class DSAPublicKeyImpl

extends DSAPublicKey
Class Inheritance
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, java.math.BigInteger, java.security.KeyRep, .InvalidKeyException

An X.509 public key for the Digital Signature Algorithm.

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.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor 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
DSAPublicKeyImpl(byte[] encoded)

Make a DSA public key from its DER encoding (X.509).

Method Summary

Modifier and TypeMethod and Description
private void
readObject(ObjectInputStream
the ObjectInputStream from which data is read
stream
)

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.

private Object
Inherited from sun.security.provider.DSAPublicKey:
getParamsgetYparseKeyBitstoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.security.provider.DSAPublicKey.serialVersionUID, java.security.interfaces.DSAPublicKey.serialVersionUID, java.security.PublicKey.serialVersionUID.

Annotations
@Serial

Constructor Detail

DSAPublicKeyImplback 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.

Parameters
y:BigInteger

the actual key bits

p:BigInteger

DSA parameter p, may be null if all of p, q, and g are null.

q:BigInteger

DSA parameter q, may be null if all of p, q, and g are null.

g:BigInteger

DSA parameter g, may be null if all of p, q, and g are null.

DSAPublicKeyImplback to summary
public DSAPublicKeyImpl(byte[] encoded) throws InvalidKeyException

Make a DSA public key from its DER encoding (X.509).

Method Detail

readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException

Hides sun.security.x509.X509Key.readObject.

Restores the state of this object from the stream.

Deserialization of this object is not supported.

Parameters
stream:ObjectInputStream

the ObjectInputStream from which data is read

Annotations
@Serial
Exceptions
IOException:
if an I/O error occurs
ClassNotFoundException:
if a serialized class cannot be loaded
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException
Annotations
@Serial