Package org.bouncycastle.asn1.cms
Class ContentInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.ContentInfo
- All Implemented Interfaces:
ASN1Encodable
,CMSObjectIdentifiers
,Encodable
-
Field Summary
Fields inherited from interface org.bouncycastle.asn1.cms.CMSObjectIdentifiers
authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_ri, id_ri_ocsp_response, id_ri_scvp, signedAndEnvelopedData, signedData, timestampedData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentInfo
getInstance
(Object obj) Return an ContentInfo object from the given object.static ContentInfo
getInstance
(ASN1TaggedObject obj, boolean explicit) Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ContentInfo
-
-
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
-
getContent
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-