java.lang.Object | ||
↳ | sun.security.pkcs.PKCS8Key | |
↳ | sun.security.provider.DSAPrivateKey |
A PKCS#8 private key for the Digital Signature Algorithm.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Make a DSA private key out of a private key and three parameters.
| |||||||||||
Make a DSA private key from its DER encoding (PKCS #8).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed.
| |||||||||||
Get the raw private key, x, without the parameters.
| |||||||||||
Returns a string representation of the object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parse the key bits.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Make a DSA private key out of a private key and three parameters.
InvalidKeyException |
---|
Make a DSA private key from its DER encoding (PKCS #8).
InvalidKeyException |
---|
Returns the DSA parameters associated with this key, or null if the parameters could not be parsed.
Get the raw private key, x, without the parameters.
x
.
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Parse the key bits. This may be redefined by subclasses to take
advantage of structure within the key. For example, RSA public
keys encapsulate two unsigned integers (modulus and exponent) as
DER values within the key
bits; Diffie-Hellman and
DSS/DSA keys encapsulate a single unsigned integer.
This function is called when creating PKCS#8 SubjectPublicKeyInfo
values using the PKCS8Key member functions, such as parse
and decode
.
InvalidKeyException |
---|