Class CMSSignedDocument
java.lang.Object
eu.europa.esig.dss.model.CommonDocument
eu.europa.esig.dss.cades.signature.CMSSignedDocument
- All Implemented Interfaces:
DSSDocument,Serializable
public class CMSSignedDocument extends CommonDocument
A document composed by a CMSSignedData
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected org.bouncycastle.cms.CMSSignedDatasignedDataFields inherited from class eu.europa.esig.dss.model.CommonDocument
absolutePath, base64EncodeDigestMap, mimeType, name -
Constructor Summary
Constructors Constructor Description CMSSignedDocument(org.bouncycastle.cms.CMSSignedData data)The default constructor for CMSSignedDocument. -
Method Summary
Modifier and Type Method Description StringgetAbsolutePath()Returns theStringrepresenting the absolute path to the encapsulated document.StringgetBase64Encoded()byte[]getBytes()org.bouncycastle.cms.CMSSignedDatagetCMSSignedData()InputStreamopenStream()Opens aInputStreamon theDSSDocumentcontents.voidwriteTo(OutputStream stream)Writes the content of the document to the provided OutputStreamMethods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getMimeType, getName, save, setAbsolutePath, setMimeType, setName, toString
-
Field Details
-
signedData
protected org.bouncycastle.cms.CMSSignedData signedData
-
-
Constructor Details
-
CMSSignedDocument
public CMSSignedDocument(org.bouncycastle.cms.CMSSignedData data)The default constructor for CMSSignedDocument.- Parameters:
data- the CMSSignedData
-
-
Method Details
-
openStream
Description copied from interface:DSSDocumentOpens aInputStreamon theDSSDocumentcontents. The type of theInputStreamdepends on the type of theDSSDocument.- Returns:
- an
InputStream
-
getCMSSignedData
public org.bouncycastle.cms.CMSSignedData getCMSSignedData()- Returns:
- the signedData
-
getBytes
public byte[] getBytes() -
getBase64Encoded
-
writeTo
Description copied from interface:DSSDocumentWrites the content of the document to the provided OutputStream- Specified by:
writeToin interfaceDSSDocument- Overrides:
writeToin classCommonDocument- Parameters:
stream- the output stream where to write- Throws:
IOException- if any IO error happens
-
getAbsolutePath
Description copied from interface:DSSDocumentReturns theStringrepresenting the absolute path to the encapsulated document.- Specified by:
getAbsolutePathin interfaceDSSDocument- Overrides:
getAbsolutePathin classCommonDocument- Returns:
Stringrepresenting the absolute path to the encapsulated document.
-