Package org.bouncycastle.asn1.cms
Class ContentInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.ContentInfo
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,CMSObjectIdentifiers
,org.bouncycastle.util.Encodable
-
Field Summary
Fields inherited from interface org.bouncycastle.asn1.cms.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 Summary
ConstructorsConstructorDescriptionContentInfo
(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.ASN1Encodable content) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1Encodable
org.bouncycastle.asn1.ASN1ObjectIdentifier
static ContentInfo
getInstance
(Object obj) Return an ContentInfo object from the given object.static ContentInfo
getInstance
(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) boolean
Return true if this object encapsulates a definite-length structure.org.bouncycastle.asn1.ASN1Primitive
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ContentInfo
public ContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.ASN1Encodable content)
-
-
Method Details
-
getInstance
Return an ContentInfo object from the given object.Accepted inputs:
- null → null
-
ContentInfo
object -
ASN1Sequence
input formats with ContentInfo structure inside
- Parameters:
obj
- the object we want converted.- Throws:
IllegalArgumentException
- if the object cannot be converted.
-
getInstance
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType() -
getContent
public org.bouncycastle.asn1.ASN1Encodable getContent() -
isDefiniteLength
public boolean isDefiniteLength()Return true if this object encapsulates a definite-length structure.- Returns:
- true if definite-length, false if indefinite.
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-