Parses the given byte array to a CMS object
CMSUtils.parseToCMS(eu.europa.esig.dss.model.DSSDocument document)
Parses the given DSSDocument to a CMS object
Parses the given byte array to a CMS object
ICMSUtils.parseToCMS(eu.europa.esig.dss.model.DSSDocument document)
Parses the given DSSDocument to a CMS object
Adds digest algorithms to CMSSignedData
Adds digest algorithms to CMSSignedData
CMSUtils.replaceCertificatesAndCRLs(CMS cms,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> certificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> attributeCertificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> crls,
org.bouncycastle.util.Store<?> ocspResponsesStore,
org.bouncycastle.util.Store<?> ocspBasicStore)
Replaces SignedData content within the CMS with the provided values
ICMSUtils.replaceCertificatesAndCRLs(CMS cms,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> certificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> attributeCertificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> crls,
org.bouncycastle.util.Store<?> ocspResponsesStore,
org.bouncycastle.util.Store<?> ocspBasicStore)
Replaces SignedData content within the CMS with the provided values
CMSUtils.replaceSigners(CMS cms,
org.bouncycastle.cms.SignerInformationStore newSignerStore)
Replaces the signers within cms with the newSignerStore
ICMSUtils.replaceSigners(CMS cms,
org.bouncycastle.cms.SignerInformationStore newSignerStore)
Replaces the signers within cms with the newSignerStore
CMSUtils.toCMS(org.bouncycastle.tsp.TimeStampToken timeStampToken)
Converts a TimeStampToken to a CMS
ICMSUtils.toCMS(org.bouncycastle.tsp.TimeStampToken timeStampToken)
Converts a TimeStampToken to a CMS
Gets encoding of the ContentInfo of CMS
Gets encoding of the ContentInfo of CMS
Adds digest algorithms to CMSSignedData
Adds digest algorithms to CMSSignedData
static org.bouncycastle.cms.SignerInformation
CMSUtils.recomputeSignerInformation(CMS cms,
org.bouncycastle.cms.SignerId signerId,
org.bouncycastle.operator.DigestCalculatorProvider digestCalculatorProvider,
eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder)
This method re-created the SignerInformation with a given signerId from CMS
by providing the digestCalculatorProvider to the validation.
org.bouncycastle.cms.SignerInformation
ICMSUtils.recomputeSignerInformation(CMS cms,
org.bouncycastle.cms.SignerId signerId,
org.bouncycastle.operator.DigestCalculatorProvider digestCalculatorProvider,
eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder)
This method re-created the SignerInformation with a given signerId from CMS
by providing the digestCalculatorProvider to the validation.
CMSUtils.replaceCertificatesAndCRLs(CMS cms,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> certificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> attributeCertificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> crls,
org.bouncycastle.util.Store<?> ocspResponsesStore,
org.bouncycastle.util.Store<?> ocspBasicStore)
Replaces SignedData content within the CMS with the provided values
ICMSUtils.replaceCertificatesAndCRLs(CMS cms,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> certificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> attributeCertificates,
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> crls,
org.bouncycastle.util.Store<?> ocspResponsesStore,
org.bouncycastle.util.Store<?> ocspBasicStore)
Replaces SignedData content within the CMS with the provided values
CMSUtils.replaceSigners(CMS cms,
org.bouncycastle.cms.SignerInformationStore newSignerStore)
Replaces the signers within cms with the newSignerStore
ICMSUtils.replaceSigners(CMS cms,
org.bouncycastle.cms.SignerInformationStore newSignerStore)
Replaces the signers within cms with the newSignerStore
static void
Writes the encoded binaries of the ContentInfo element to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
void
Writes the encoded binaries of the ContentInfo element to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
static void
Writes the encoded binaries of the SignedData.certificates field to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
void
Writes the encoded binaries of the SignedData.certificates field to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
static void
Writes the encoded binaries of the SignedData.crls field to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
void
Writes the encoded binaries of the SignedData.crls field to the given OutputStream
NOTE: This method is used for archive-time-stamp-v2 message-imprint computation.
static void
Writes the encoded binaries of the SignedData.digestAlgorithms field to the given OutputStream
NOTE: This method is used for evidence record hash computation
void
Writes the encoded binaries of the SignedData.digestAlgorithms field to the given OutputStream
NOTE: This method is used for evidence record hash computation
static void
Writes the encoded binaries of the SignedData.signerInfos field to the given OutputStream
NOTE: This method is used for evidence record hash computation
void
Writes the encoded binaries of the SignedData.signerInfos field to the given OutputStream
NOTE: This method is used for evidence record hash computation
static eu.europa.esig.dss.model.DSSDocument
CMSUtils.writeToDSSDocument(CMS cms,
eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder)
Creates a DSSDocument from the given CMS.
eu.europa.esig.dss.model.DSSDocument
ICMSUtils.writeToDSSDocument(CMS cms,
eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder)
Creates a DSSDocument from the given CMS using the implementation based coding.