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.CMSSignedData
signedData
Fields 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 String
getAbsolutePath()
Returns theString
representing the absolute path to the encapsulated document.String
getBase64Encoded()
byte[]
getBytes()
org.bouncycastle.cms.CMSSignedData
getCMSSignedData()
InputStream
openStream()
Opens aInputStream
on theDSSDocument
contents.void
writeTo(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:DSSDocument
Opens aInputStream
on theDSSDocument
contents. The type of theInputStream
depends 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:DSSDocument
Writes the content of the document to the provided OutputStream- Specified by:
writeTo
in interfaceDSSDocument
- Overrides:
writeTo
in classCommonDocument
- Parameters:
stream
- the output stream where to write- Throws:
IOException
- if any IO error happens
-
getAbsolutePath
Description copied from interface:DSSDocument
Returns theString
representing the absolute path to the encapsulated document.- Specified by:
getAbsolutePath
in interfaceDSSDocument
- Overrides:
getAbsolutePath
in classCommonDocument
- Returns:
String
representing the absolute path to the encapsulated document.
-