org.bouncycastle.asn1.pkcs
public class PrivateKeyInfo extends ASN1Encodable
| Constructor Summary | |
|---|---|
| PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey) | |
| PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey, ASN1Set attributes) | |
| PrivateKeyInfo(ASN1Sequence seq) | |
| Method Summary | |
|---|---|
| AlgorithmIdentifier | getAlgorithmId() |
| ASN1Set | getAttributes() |
| static PrivateKeyInfo | getInstance(ASN1TaggedObject obj, boolean explicit) |
| static PrivateKeyInfo | getInstance(Object obj) |
| DERObject | getPrivateKey() |
| DERObject | toASN1Object()
write out an RSA private key with it's asscociated information
as described in PKCS8.
|
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL
}
Version ::= INTEGER {v1(0)} (v1,...)
PrivateKey ::= OCTET STRING
Attributes ::= SET OF Attribute