Package com.itextpdf.signatures.cms
Class EncapsulatedContentInfo
- java.lang.Object
-
- com.itextpdf.signatures.cms.EncapsulatedContentInfo
-
public class EncapsulatedContentInfo extends java.lang.ObjectThis class represents the signed content.
-
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactoryBC_FACTORYprivate IASN1OctetStringeContentOptional.private java.lang.StringeContentTypeObject identifier of the content field
-
Constructor Summary
Constructors Constructor Description EncapsulatedContentInfo()Creates a default EncapsulatedContentInfo.EncapsulatedContentInfo(IASN1Sequence lencapContentInfo)EncapsulatedContentInfo(java.lang.String eContentType)Creates an EncapsulatedContentInfo with contenttype.EncapsulatedContentInfo(java.lang.String eContentType, IASN1OctetString eContent)Creates an EncapsulatedContentInfo with contenttype and content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IASN1OctetStringgetContent()Returns the content.java.lang.StringgetContentType()Returns the contenttype oid.
-
-
-
Field Detail
-
BC_FACTORY
private static final IBouncyCastleFactory BC_FACTORY
-
eContentType
private java.lang.String eContentType
Object identifier of the content field
-
eContent
private IASN1OctetString eContent
Optional.The actual content as an octet string. Does not have to be DER encoded.
-
-
Constructor Detail
-
EncapsulatedContentInfo
public EncapsulatedContentInfo(java.lang.String eContentType, IASN1OctetString eContent)Creates an EncapsulatedContentInfo with contenttype and content.- Parameters:
eContentType- the content type Oid (object id)eContent- the content
-
EncapsulatedContentInfo
public EncapsulatedContentInfo(java.lang.String eContentType)
Creates an EncapsulatedContentInfo with contenttype.- Parameters:
eContentType- the content type Oid (object id)
-
EncapsulatedContentInfo
public EncapsulatedContentInfo()
Creates a default EncapsulatedContentInfo.
-
EncapsulatedContentInfo
EncapsulatedContentInfo(IASN1Sequence lencapContentInfo)
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
Returns the contenttype oid.- Returns:
- the contenttype oid.
-
getContent
public IASN1OctetString getContent()
Returns the content.- Returns:
- the content.
-
-