public class ContentInfo extends org.bouncycastle.asn1.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(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType,
org.bouncycastle.asn1.ASN1Encodable content) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.ASN1Encodable |
getContent() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getContentType() |
static ContentInfo |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit) |
static ContentInfo |
getInstance(java.lang.Object obj)
Return an ContentInfo object from the given object.
|
boolean |
isDefiniteLength()
Return true if this object encapsulates a definite-length structure.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
public ContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType,
org.bouncycastle.asn1.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(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
public org.bouncycastle.asn1.ASN1Encodable getContent()
public boolean isDefiniteLength()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1Object