Class CMSSignedDocument
java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.cades.signature.CMSSignedDocument
- All Implemented Interfaces:
eu.europa.esig.dss.model.DSSDocument,Serializable
public class CMSSignedDocument
extends eu.europa.esig.dss.model.CommonDocument
A document composed by a CMSSignedData
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bouncycastle.cms.CMSSignedDataThe CMSSignedData representing the documentFields inherited from class eu.europa.esig.dss.model.CommonDocument
base64EncodeDigestMap, mimeType, name -
Constructor Summary
ConstructorsConstructorDescriptionCMSSignedDocument(org.bouncycastle.cms.CMSSignedData data) The default constructor for CMSSignedDocument.CMSSignedDocument(org.bouncycastle.cms.CMSSignedData data, String name) The constructor for CMSSignedDocument with a custom document name -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Returns the encoded binaries of the CMSSignedDataorg.bouncycastle.cms.CMSSignedDataGetsCMSSignedDatavoidwriteTo(OutputStream stream) Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getMimeType, getName, save, setMimeType, setName, toString
-
Field Details
-
signedData
protected org.bouncycastle.cms.CMSSignedData signedDataThe CMSSignedData representing the document
-
-
Constructor Details
-
CMSSignedDocument
public CMSSignedDocument(org.bouncycastle.cms.CMSSignedData data) The default constructor for CMSSignedDocument.- Parameters:
data- the CMSSignedData
-
CMSSignedDocument
The constructor for CMSSignedDocument with a custom document name- Parameters:
data- the CMSSignedDataname-Stringdocument name
-
-
Method Details
-
openStream
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()GetsCMSSignedData- Returns:
CMSSignedDatathe signedData
-
getBytes
public byte[] getBytes()Returns the encoded binaries of the CMSSignedData- Returns:
- binaries
-
writeTo
- Specified by:
writeToin interfaceeu.europa.esig.dss.model.DSSDocument- Overrides:
writeToin classeu.europa.esig.dss.model.CommonDocument- Throws:
IOException
-