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) |
Modifier and Type | Method and Description |
---|---|
ASN1Encodable |
getContent() |
ASN1ObjectIdentifier |
getContentType() |
static ContentInfo |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static ContentInfo |
getInstance(java.lang.Object obj)
Return an ContentInfo object from the given object.
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)
public static ContentInfo getInstance(java.lang.Object obj)
Accepted inputs:
ContentInfo
object
ASN1Sequence
input formats with ContentInfo structure inside
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public static ContentInfo getInstance(ASN1TaggedObject obj, boolean explicit)
public ASN1ObjectIdentifier getContentType()
public ASN1Encodable getContent()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object