public class

PrivateKeyInfo

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.pkcs.PrivateKeyInfo

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey)
PrivateKeyInfo(AlgorithmIdentifier algId, DERObject privateKey, ASN1Set attributes)
PrivateKeyInfo(ASN1Sequence seq)
Public Methods
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 its associated information as described in PKCS8.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public PrivateKeyInfo (AlgorithmIdentifier algId, DERObject privateKey)

public PrivateKeyInfo (AlgorithmIdentifier algId, DERObject privateKey, ASN1Set attributes)

public PrivateKeyInfo (ASN1Sequence seq)

Public Methods

public AlgorithmIdentifier getAlgorithmId ()

public ASN1Set getAttributes ()

public static PrivateKeyInfo getInstance (ASN1TaggedObject obj, boolean explicit)

public static PrivateKeyInfo getInstance (Object obj)

public DERObject getPrivateKey ()

public DERObject toASN1Object ()

write out an RSA private key with its associated 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