Class PrivateKeyInfo
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.pkcs.PrivateKeyInfo
- All Implemented Interfaces:
DEREncodable
-
Field Summary
FieldsFields inherited from class ASN1Encodable
BER, DER -
Constructor Summary
ConstructorsConstructorDescriptionPrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey) PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey, ASN1Set attributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeyInfogetInstance(Object obj) static PrivateKeyInfogetInstance(ASN1TaggedObject obj, boolean explicit) write out an RSA private key with it's asscociated information as described in PKCS8.Methods inherited from class ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
Field Details
-
privKey
-
algId
-
attributes
-
-
Constructor Details
-
PrivateKeyInfo
-
PrivateKeyInfo
-
PrivateKeyInfo
-
-
Method Details
-
getInstance
-
getInstance
-
getAlgorithmId
-
getPrivateKey
-
getAttributes
-
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- Specified by:
toASN1Objectin classASN1Encodable
-