Class CMSSignedDocument
java.lang.Object
eu.europa.esig.dss.cms.CMSSignedDocument
- All Implemented Interfaces:
Serializable
-
Field Summary
Fields -
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 TypeMethodDescriptionbooleanbyte[]getBytes()Returns the encoded binaries of the CMSSignedDataorg.bouncycastle.cms.CMSSignedDataGetsCMSSignedDataeu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) byte[]getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) eu.europa.esig.dss.enumerations.MimeTypegetName()inthashCode()voidvoidsetMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) voidtoString()voidwriteTo(OutputStream stream) This method writes a content of the CMS into anOutputStreamusing the DL coding
-
Field Details
-
signedData
protected org.bouncycastle.cms.CMSSignedData signedDataThe CMSSignedData representing the document -
digestMap
-
mimeType
protected eu.europa.esig.dss.enumerations.MimeType mimeType -
name
-
-
Constructor Details
-
CMSSignedDocument
public CMSSignedDocument(org.bouncycastle.cms.CMSSignedData data) The default constructor for CMSSignedDocument.- Parameters:
data- the CMSSignedData
-
CMSSignedDocument
-
-
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
This method writes a content of the CMS into anOutputStreamusing the DL coding- Parameters:
stream- the output stream where to write- Throws:
IOException- if an error occurs on writing
-
equals
-
hashCode
public int hashCode() -
save
- Throws:
IOException
-
getMimeType
public eu.europa.esig.dss.enumerations.MimeType getMimeType() -
setMimeType
public void setMimeType(eu.europa.esig.dss.enumerations.MimeType arg0) -
getName
-
setName
-
getDigest
public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
getDigestValue
public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0) -
toString
-