org.bouncycastle.asn1.pkcs

Class EncryptedData

Implemented Interfaces:
DEREncodable

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
 

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

EncryptedData(ASN1Sequence seq)
EncryptedData(DERObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, DEREncodable content)

Method Summary

ASN1OctetString
getContent()
DERObjectIdentifier
getContentType()
AlgorithmIdentifier
getEncryptionAlgorithm()
static EncryptedData
getInstance(Object obj)
DERObject
toASN1Object()

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode, toASN1Object

Constructor Details

EncryptedData

public EncryptedData(ASN1Sequence seq)

EncryptedData

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

Method Details

getContent

public ASN1OctetString getContent()

getContentType

public DERObjectIdentifier getContentType()

getEncryptionAlgorithm

public AlgorithmIdentifier getEncryptionAlgorithm()

getInstance

public static EncryptedData getInstance(Object obj)

toASN1Object

public DERObject toASN1Object()
Overrides:
toASN1Object in interface ASN1Encodable