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.
-
algDSA
-
-
y
-
-
DSAPublicKey()
- Default constructor.
-
decode(InputStream)
-
-
encode(OutputStream)
- There's a package-visible version of this so we can have
package-private key storage.
-
init()
- Initialize the BSAFE public key object.
-
parseKeyBits()
-
-
toString()
-
algDSA
protected AlgIdDSA algDSA
y
protected byte y[]
DSAPublicKey
public DSAPublicKey()
- Default constructor. The object must be initialized after it
gets constructed.
parseKeyBits
protected void parseKeyBits() throws IOException
- Overrides:
- parseKeyBits in class X509Key
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
toString
public String toString()
- Overrides:
- toString in class X509Key
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
decode
public void decode(InputStream in) throws InvalidKeyException
- Overrides:
- decode in class X509Key
All Packages Class Hierarchy This Package Previous Next Index