java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.cms.stream.CMSSignedContentDocument
- All Implemented Interfaces:
eu.europa.esig.dss.model.DSSDocument,Serializable
public class CMSSignedContentDocument
extends eu.europa.esig.dss.model.CommonDocument
This class is used to extract a wrapped signed content from a CMS document.
The class allows providing digest in order to avoid reading the document.
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.model.CommonDocument
digestMap, mimeType, name -
Constructor Summary
ConstructorsConstructorDescriptionCMSSignedContentDocument(eu.europa.esig.dss.model.DSSDocument cmsDocument) Constructor with a null signed content typeCMSSignedContentDocument(eu.europa.esig.dss.model.DSSDocument cmsDocument, org.bouncycastle.asn1.ASN1ObjectIdentifier signedContentType) Constructor with a provided signed content type -
Method Summary
Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getDigestValue, getMimeType, getName, setMimeType, setName, toString, writeTo
-
Constructor Details
-
CMSSignedContentDocument
public CMSSignedContentDocument(eu.europa.esig.dss.model.DSSDocument cmsDocument) Constructor with a null signed content type- Parameters:
cmsDocument-DSSDocumentrepresenting the CMS document
-
CMSSignedContentDocument
public CMSSignedContentDocument(eu.europa.esig.dss.model.DSSDocument cmsDocument, org.bouncycastle.asn1.ASN1ObjectIdentifier signedContentType) Constructor with a provided signed content type- Parameters:
cmsDocument-DSSDocumentrepresenting the CMS documentsignedContentType-ASN1ObjectIdentifier
-
-
Method Details
-
openStream
-
toCMSTypedData
public org.bouncycastle.cms.CMSTypedData toCMSTypedData()Returns aCMSTypedDatafor a signature creation- Returns:
CMSTypedData
-
addDigest
public void addDigest(eu.europa.esig.dss.model.Digest digest) This method allows to add aDigestwith a new digest algorithm to the current DigestDocument. Overwrites the previous digest if the same DigestAlgorithm is provided.- Parameters:
digest-Digestfor the current document
-
save
- Specified by:
savein interfaceeu.europa.esig.dss.model.DSSDocument- Overrides:
savein classeu.europa.esig.dss.model.CommonDocument- Throws:
IOException
-
equals
- Overrides:
equalsin classeu.europa.esig.dss.model.CommonDocument
-
hashCode
public int hashCode()- Overrides:
hashCodein classeu.europa.esig.dss.model.CommonDocument
-