org.bouncycastle.asn1.cms

Class EncryptedContentInfo

public class EncryptedContentInfo extends ASN1Encodable

Constructor Summary
EncryptedContentInfo(DERObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)
EncryptedContentInfo(ASN1Sequence seq)
Method Summary
AlgorithmIdentifiergetContentEncryptionAlgorithm()
DERObjectIdentifiergetContentType()
ASN1OctetStringgetEncryptedContent()
static EncryptedContentInfogetInstance(Object obj)
return an EncryptedContentInfo object from the given object.
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

EncryptedContentInfo

public EncryptedContentInfo(DERObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)

EncryptedContentInfo

public EncryptedContentInfo(ASN1Sequence seq)

Method Detail

getContentEncryptionAlgorithm

public AlgorithmIdentifier getContentEncryptionAlgorithm()

getContentType

public DERObjectIdentifier getContentType()

getEncryptedContent

public ASN1OctetString getEncryptedContent()

getInstance

public static EncryptedContentInfo getInstance(Object obj)
return an EncryptedContentInfo object from the given object.

Parameters: obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 EncryptedContentInfo ::= SEQUENCE {
     contentType ContentType,
     contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
     encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL 
 }