Class ContentInfo
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.asn1.cms.CMSObjectIdentifiers,io.anyline.nfc.bouncycastle.util.Encodable
public class ContentInfo extends ASN1Object implements CMSObjectIdentifiers
RFC 5652 ContentInfo, and RFC 5652 EncapsulatedContentInfo objects.
ContentInfo ::= SEQUENCE { contentType ContentType, content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } EncapsulatedContentInfo ::= SEQUENCE { eContentType ContentType, eContent [0] EXPLICIT OCTET STRING OPTIONAL }
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)
-
Method Summary
Modifier and Type Method Description ASN1ObjectIdentifiergetContentType()ASN1EncodablegetContent()static ContentInfogetInstance(Object obj)Return an ContentInfo object from the given object. static ContentInfogetInstance(ASN1TaggedObject obj, boolean explicit)ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream. -
-
Constructor Detail
-
ContentInfo
ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)
-
-
Method Detail
-
getContentType
ASN1ObjectIdentifier getContentType()
-
getContent
ASN1Encodable getContent()
-
getInstance
static ContentInfo getInstance(Object obj)
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.
-
getInstance
static ContentInfo getInstance(ASN1TaggedObject obj, boolean explicit)
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
-
-
-
-