org.bouncycastle.asn1.pkcs

Class EncryptedData

public class EncryptedData extends ASN1Encodable

The EncryptedData object.
      EncryptedData ::= SEQUENCE {
           version Version,
           encryptedContentInfo EncryptedContentInfo
      }


      EncryptedContentInfo ::= SEQUENCE {
          contentType ContentType,
          contentEncryptionAlgorithm  ContentEncryptionAlgorithmIdentifier,
          encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL
    }

    EncryptedContent ::= OCTET STRING
 
Constructor Summary
EncryptedData(ASN1Sequence seq)
EncryptedData(DERObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, DEREncodable content)
Method Summary
ASN1OctetStringgetContent()
DERObjectIdentifiergetContentType()
AlgorithmIdentifiergetEncryptionAlgorithm()
static EncryptedDatagetInstance(Object obj)
DERObjecttoASN1Object()

Constructor Detail

EncryptedData

public EncryptedData(ASN1Sequence seq)

EncryptedData

public EncryptedData(DERObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, DEREncodable content)

Method Detail

getContent

public ASN1OctetString getContent()

getContentType

public DERObjectIdentifier getContentType()

getEncryptionAlgorithm

public AlgorithmIdentifier getEncryptionAlgorithm()

getInstance

public static EncryptedData getInstance(Object obj)

toASN1Object

public DERObject toASN1Object()