Package org.gudy.bouncycastle.asn1.cms
Class ContentInfo
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Encodable
-
- org.gudy.bouncycastle.asn1.cms.ContentInfo
-
- All Implemented Interfaces:
CMSObjectIdentifiers
,DEREncodable
public class ContentInfo extends ASN1Encodable implements CMSObjectIdentifiers
-
-
Field Summary
Fields Modifier and Type Field Description private DEREncodable
content
private DERObjectIdentifier
contentType
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
Fields inherited from interface org.gudy.bouncycastle.asn1.cms.CMSObjectIdentifiers
compressedData, data, digestedData, encryptedData, envelopedData, signedAndEnvelopedData, signedData
-
-
Constructor Summary
Constructors Constructor Description ContentInfo(ASN1Sequence seq)
ContentInfo(DERObjectIdentifier contentType, DEREncodable content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DEREncodable
getContent()
DERObjectIdentifier
getContentType()
static ContentInfo
getInstance(java.lang.Object obj)
DERObject
toASN1Object()
Produce an object suitable for an ASN1OutputStream.-
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
-
-
-
Field Detail
-
contentType
private DERObjectIdentifier contentType
-
content
private DEREncodable content
-
-
Constructor Detail
-
ContentInfo
public ContentInfo(ASN1Sequence seq)
-
ContentInfo
public ContentInfo(DERObjectIdentifier contentType, DEREncodable content)
-
-
Method Detail
-
getInstance
public static ContentInfo getInstance(java.lang.Object obj)
-
getContentType
public DERObjectIdentifier getContentType()
-
getContent
public DEREncodable getContent()
-
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.ContentInfo ::= SEQUENCE { contentType ContentType, content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
- Specified by:
toASN1Object
in classASN1Encodable
-
-