public class ContentInfo extends ASN1Object implements CMSObjectIdentifiers
authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_alg, id_alg_cek_hkdf_sha256, id_ecdsa_with_shake128, id_ecdsa_with_shake256, id_ori, id_ori_kem, id_ri, id_ri_ocsp_response, id_ri_scvp, id_RSASSA_PSS_SHAKE128, id_RSASSA_PSS_SHAKE256, signedAndEnvelopedData, signedData, timestampedData, zlibCompress| Constructor and Description |
|---|
ContentInfo(ASN1ObjectIdentifier contentType,
ASN1Encodable content) |
| Modifier and Type | Method and Description |
|---|---|
ASN1Encodable |
getContent() |
ASN1ObjectIdentifier |
getContentType() |
static ContentInfo |
getInstance(ASN1TaggedObject taggedObject,
boolean declaredExplicit) |
static ContentInfo |
getInstance(java.lang.Object obj)
Return an ContentInfo object from the given object.
|
static ContentInfo |
getTagged(ASN1TaggedObject taggedObject,
boolean declaredExplicit) |
boolean |
isDefiniteLength()
Return true if this object encapsulates a definite-length structure.
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCodepublic 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 taggedObject, boolean declaredExplicit)
public static ContentInfo getTagged(ASN1TaggedObject taggedObject, boolean declaredExplicit)
public ASN1ObjectIdentifier getContentType()
public ASN1Encodable getContent()
public boolean isDefiniteLength()
public ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object