org.bouncycastle.asn1.pkcs

Class EncryptedPrivateKeyInfo

public class EncryptedPrivateKeyInfo extends ASN1Encodable

Constructor Summary
EncryptedPrivateKeyInfo(ASN1Sequence seq)
EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)
Method Summary
byte[]getEncryptedData()
AlgorithmIdentifiergetEncryptionAlgorithm()
static EncryptedPrivateKeyInfogetInstance(Object obj)
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(ASN1Sequence seq)

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)

Method Detail

getEncryptedData

public byte[] getEncryptedData()

getEncryptionAlgorithm

public AlgorithmIdentifier getEncryptionAlgorithm()

getInstance

public static EncryptedPrivateKeyInfo getInstance(Object obj)

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 EncryptedPrivateKeyInfo ::= SEQUENCE {
      encryptionAlgorithm AlgorithmIdentifier {{KeyEncryptionAlgorithms}},
      encryptedData EncryptedData
 }

 EncryptedData ::= OCTET STRING

 KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= {
          ... -- For local profiles
 }