public final class

DSAPublicKeyImpl

extends DSAPublicKey
java.lang.Object
   ↳ sun.security.x509.X509Key
     ↳ sun.security.provider.DSAPublicKey
       ↳ sun.security.provider.DSAPublicKeyImpl

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PublicKey
From interface java.security.interfaces.DSAPublicKey
[Expand]
Inherited Fields
From class sun.security.x509.X509Key
Public Constructors
DSAPublicKeyImpl(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
Make a DSA public key out of a public key and three parameters.
DSAPublicKeyImpl(byte[] encoded)
Make a DSA public key from its DER encoding (X.509).
Protected Methods
Object writeReplace()
[Expand]
Inherited Methods
From class sun.security.provider.DSAPublicKey
From class sun.security.x509.X509Key
From class java.lang.Object
From interface java.security.Key
From interface java.security.interfaces.DSAKey
From interface java.security.interfaces.DSAPublicKey

Public Constructors

public DSAPublicKeyImpl (BigInteger y, BigInteger p, BigInteger q, BigInteger g)

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 the actual key bits
p DSA parameter p, may be null if all of p, q, and g are null.
q DSA parameter q, may be null if all of p, q, and g are null.
g DSA parameter g, may be null if all of p, q, and g are null.

public DSAPublicKeyImpl (byte[] encoded)

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

Protected Methods

protected Object writeReplace ()