org.bouncycastle.asn1.pkcs

Class EncryptedPrivateKeyInfo

Implemented Interfaces:
DEREncodable

public class EncryptedPrivateKeyInfo
extends ASN1Encodable

Constructor Summary

EncryptedPrivateKeyInfo(ASN1Sequence seq)
EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)

Method Summary

byte[]
getEncryptedData()
AlgorithmIdentifier
getEncryptionAlgorithm()
static EncryptedPrivateKeyInfo
getInstance(Object obj)
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDERObject, getEncoded, hashCode, toASN1Object

Constructor Details

EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(ASN1Sequence seq)


EncryptedPrivateKeyInfo

public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId,
                               byte[] encoding)

Method Details

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
 }
 
Overrides:
toASN1Object in interface ASN1Encodable