Class sun.security.jsafe.DSAPublicKey
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.security.jsafe.DSAPublicKey

java.lang.Object
   |
   +----java.security.Key
           |
           +----sun.security.SunKey
                   |
                   +----sun.security.x509.X509Key
                           |
                           +----sun.security.jsafe.JSafeKey
                                   |
                                   +----sun.security.jsafe.DSAPublicKey

public class DSAPublicKey
extends JSafeKey
implements PublicKey
Holds a public DSA key, for example a public key found in an X.509 certificate. This represents internal key structure in a way that facilitates its active use.

The public key data is an unsigned integer, encapsulated in a DER sequence. This is the current convention for representation of DSA private keys in the X.509 world.


Variable Index

 o algDSA
 o y

Constructor Index

 o DSAPublicKey()
Default constructor.

Method Index

 o decode(InputStream)
 o encode(OutputStream)
There's a package-visible version of this so we can have package-private key storage.
 o init()
Initialize the BSAFE public key object.
 o parseKeyBits()
 o toString()

Variables

 o algDSA
  protected AlgIdDSA algDSA
 o y
  protected byte y[]

Constructors

 o DSAPublicKey
  public DSAPublicKey()
Default constructor. The object must be initialized after it gets constructed.

Methods

 o parseKeyBits
  protected void parseKeyBits() throws IOException
Overrides:
parseKeyBits in class X509Key
 o init
  public void init() throws InvalidKeyException
Initialize the BSAFE public key object.
Throws: InvalidKeyException
if the algorithm isn't of the correct type (sun.security.x509.AlgIdDSA)
Overrides:
init in class JSafeKey
 o toString
  public String toString()
Overrides:
toString in class X509Key
 o encode
  public void encode(OutputStream out) throws InvalidKeyException, IOException
There's a package-visible version of this so we can have package-private key storage.
Overrides:
encode in class JSafeKey
 o decode
  public void decode(InputStream in) throws InvalidKeyException
Overrides:
decode in class X509Key

All Packages  Class Hierarchy  This Package  Previous  Next  Index