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.Methods inherited from class eu.europa.esig.dss.model.CommonDocument
getDigest, getMimeType, getName, save, setAbsolutePath, setMimeType, setName, toString, writeTo
-
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
-
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.
-