gnu.crypto.pki.provider
class GnuDSAPrivateKey extends Object implements DSAPrivateKey
| Field Summary | |
|---|---|
| BigInteger | g |
| BigInteger | p |
| BigInteger | q |
| BigInteger | x |
| Constructor Summary | |
|---|---|
| GnuDSAPrivateKey(BigInteger x, BigInteger p, BigInteger q, BigInteger g) | |
| Method Summary | |
|---|---|
| String | getAlgorithm() |
| byte[] | getEncoded()
Encodes this key as a PrivateKeyInfo, as described in
PKCS #8. |
| String | getFormat() |
| DSAParams | getParams() |
| BigInteger | getX() |
| String | toString() |
PrivateKeyInfo, as described in
PKCS #8. The ASN.1 specification for this structure is:
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL }
Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute
DSA private keys (in Classpath at least) have no attributes.