public class ContentInfo extends ASN1Object implements CMSObjectIdentifiers
authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_ri, id_ri_ocsp_response, id_ri_scvp, signedAndEnvelopedData, signedData, timestampedData
Constructor and Description |
---|
ContentInfo(ASN1ObjectIdentifier contentType,
ASN1Encodable content) |
ContentInfo(ASN1Sequence seq)
Deprecated.
use getInstance()
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public ContentInfo(ASN1Sequence seq)
public ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)
public static ContentInfo getInstance(java.lang.Object obj)
public static ContentInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public ASN1ObjectIdentifier getContentType()
public ASN1Encodable getContent()
public ASN1Primitive toASN1Primitive()
ContentInfo ::= SEQUENCE { contentType ContentType, content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object