org.bouncycastle.asn1.cms

Class EncryptedContentInfo

Implemented Interfaces:
DEREncodable

public class EncryptedContentInfo
extends ASN1Encodable

Field Summary

Fields inherited from class org.bouncycastle.asn1.ASN1Encodable

BER, DER

Constructor Summary

EncryptedContentInfo(ASN1Sequence seq)
EncryptedContentInfo(DERObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)

Method Summary

AlgorithmIdentifier
getContentEncryptionAlgorithm()
DERObjectIdentifier
getContentType()
ASN1OctetString
getEncryptedContent()
static EncryptedContentInfo
getInstance(Object obj)
return an EncryptedContentInfo object from the given object.
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.

Methods inherited from class org.bouncycastle.asn1.ASN1Encodable

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

Constructor Details

EncryptedContentInfo

public EncryptedContentInfo(ASN1Sequence seq)

EncryptedContentInfo

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

Method Details

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.

toASN1Object

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