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
public class ContentInfo extends org.bouncycastle.asn1.ASN1Object implements CMSObjectIdentifiers
-
-
Field Summary
-
Fields inherited from interface org.bouncycastle.asn1.cms.CMSObjectIdentifiers
authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_alg, id_ecdsa_with_shake128, id_ecdsa_with_shake256, id_ri, id_ri_ocsp_response, id_ri_scvp, id_RSASSA_PSS_SHAKE128, id_RSASSA_PSS_SHAKE256, signedAndEnvelopedData, signedData, timestampedData
-
-
Constructor Summary
Constructors Constructor Description ContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.ASN1Encodable content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.ASN1EncodablegetContent()org.bouncycastle.asn1.ASN1ObjectIdentifiergetContentType()static ContentInfogetInstance(java.lang.Object obj)Return an ContentInfo object from the given object.static ContentInfogetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)booleanisDefiniteLength()Return true if this object encapsulates a definite-length structure.org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.
-
-
-
Method Detail
-
getInstance
public static ContentInfo getInstance(java.lang.Object obj)
Return an ContentInfo object from the given object.Accepted inputs:
- null → null
-
ContentInfoobject -
ASN1Sequenceinput formats with ContentInfo structure inside
- Parameters:
obj- the object we want converted.- Throws:
java.lang.IllegalArgumentException- if the object cannot be converted.
-
getInstance
public static ContentInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
-
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:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
-