Bouncy Castle Cryptography Library 1.49

org.bouncycastle.asn1.cms
Class ContentInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.cms.ContentInfo
All Implemented Interfaces:
ASN1Encodable, CMSObjectIdentifiers

public class ContentInfo
extends ASN1Object
implements CMSObjectIdentifiers


Field Summary
 
Fields inherited from interface org.bouncycastle.asn1.cms.CMSObjectIdentifiers
authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_ri, id_ri_ocsp_response, id_ri_scvp, signedAndEnvelopedData, signedData, timestampedData
 
Constructor Summary
ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)
           
ContentInfo(ASN1Sequence seq)
          Deprecated. use getInstance()
 
Method Summary
 ASN1Encodable getContent()
           
 ASN1ObjectIdentifier getContentType()
           
static ContentInfo getInstance(ASN1TaggedObject obj, boolean explicit)
           
static ContentInfo getInstance(java.lang.Object obj)
           
 ASN1Primitive toASN1Primitive()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentInfo

public ContentInfo(ASN1Sequence seq)
Deprecated. use getInstance()


ContentInfo

public ContentInfo(ASN1ObjectIdentifier contentType,
                   ASN1Encodable content)
Method Detail

getInstance

public static ContentInfo getInstance(java.lang.Object obj)

getInstance

public static ContentInfo getInstance(ASN1TaggedObject obj,
                                      boolean explicit)

getContentType

public ASN1ObjectIdentifier getContentType()

getContent

public ASN1Encodable getContent()

toASN1Primitive

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

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

Bouncy Castle Cryptography Library 1.49