org.bouncycastle.asn1.cms

Class ContentInfo

public class ContentInfo extends ASN1Encodable implements CMSObjectIdentifiers

Constructor Summary
ContentInfo(ASN1Sequence seq)
ContentInfo(DERObjectIdentifier contentType, DEREncodable content)
Method Summary
DEREncodablegetContent()
DERObjectIdentifiergetContentType()
static ContentInfogetInstance(Object obj)
DERObjecttoASN1Object()
Produce an object suitable for an ASN1OutputStream.

Constructor Detail

ContentInfo

public ContentInfo(ASN1Sequence seq)

ContentInfo

public ContentInfo(DERObjectIdentifier contentType, DEREncodable content)

Method Detail

getContent

public DEREncodable getContent()

getContentType

public DERObjectIdentifier getContentType()

getInstance

public static ContentInfo getInstance(Object obj)

toASN1Object

public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
 ContentInfo ::= SEQUENCE {
          contentType ContentType,
          content
          [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }