Uses of Interface
eu.europa.esig.dss.cms.CMS
Packages that use CMS
-
Uses of CMS in eu.europa.esig.dss.cms
Methods in eu.europa.esig.dss.cms that return CMSModifier and TypeMethodDescriptionCMSBuilder.createCMS(org.bouncycastle.cms.SignerInfoGenerator signerInfoGenerator, eu.europa.esig.dss.model.DSSDocument toSignDocument) Builds aCMSSignedDataCMSBuilder.extendCMSSignedData(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificateTokens, Collection<eu.europa.esig.dss.spi.x509.revocation.crl.CRLToken> crlTokens, Collection<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPToken> ocspTokens) Extends the providedoriginalCMSwith the required validation dataCMSGenerator.generate()Generates theCMSstatic CMSCMSUtils.parseToCMS(byte[] binaries) Parses the given byte array to aCMSobjectstatic CMSCMSUtils.parseToCMS(eu.europa.esig.dss.model.DSSDocument document) Parses the givenDSSDocumentto aCMSobjectICMSUtils.parseToCMS(byte[] binaries) Parses the given byte array to aCMSobjectICMSUtils.parseToCMS(eu.europa.esig.dss.model.DSSDocument document) Parses the givenDSSDocumentto aCMSobjectstatic CMSCMSUtils.populateDigestAlgorithmSet(CMS cms, Collection<org.bouncycastle.asn1.x509.AlgorithmIdentifier> digestAlgorithmsToAdd) Adds digest algorithms toCMSSignedDataICMSUtils.populateDigestAlgorithmSet(CMS cms, Collection<org.bouncycastle.asn1.x509.AlgorithmIdentifier> digestAlgorithmsToAdd) Adds digest algorithms toCMSSignedDatastatic CMSCMSUtils.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 theCMSwith the provided valuesICMSUtils.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 theCMSwith the provided valuesstatic CMSCMSUtils.replaceSigners(CMS cms, org.bouncycastle.cms.SignerInformationStore newSignerStore) Replaces the signers withincmswith thenewSignerStoreICMSUtils.replaceSigners(CMS cms, org.bouncycastle.cms.SignerInformationStore newSignerStore) Replaces the signers withincmswith thenewSignerStorestatic CMSCMSUtils.toCMS(org.bouncycastle.tsp.TimeStampToken timeStampToken) Converts aTimeStampTokento aCMSICMSUtils.toCMS(org.bouncycastle.tsp.TimeStampToken timeStampToken) Converts aTimeStampTokento aCMSMethods in eu.europa.esig.dss.cms with parameters of type CMSModifier and TypeMethodDescriptionstatic StringCMSUtils.getContentInfoEncoding(CMS cms) Gets encoding of the ContentInfo of CMSICMSUtils.getContentInfoEncoding(CMS cms) Gets encoding of the ContentInfo of CMSstatic CMSCMSUtils.populateDigestAlgorithmSet(CMS cms, Collection<org.bouncycastle.asn1.x509.AlgorithmIdentifier> digestAlgorithmsToAdd) Adds digest algorithms toCMSSignedDataICMSUtils.populateDigestAlgorithmSet(CMS cms, Collection<org.bouncycastle.asn1.x509.AlgorithmIdentifier> digestAlgorithmsToAdd) Adds digest algorithms toCMSSignedDatastatic org.bouncycastle.cms.SignerInformationCMSUtils.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 theSignerInformationwith a givensignerIdfromCMSby providing thedigestCalculatorProviderto the validation.org.bouncycastle.cms.SignerInformationICMSUtils.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 theSignerInformationwith a givensignerIdfromCMSby providing thedigestCalculatorProviderto the validation.static CMSCMSUtils.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 theCMSwith the provided valuesICMSUtils.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 theCMSwith the provided valuesstatic CMSCMSUtils.replaceSigners(CMS cms, org.bouncycastle.cms.SignerInformationStore newSignerStore) Replaces the signers withincmswith thenewSignerStoreICMSUtils.replaceSigners(CMS cms, org.bouncycastle.cms.SignerInformationStore newSignerStore) Replaces the signers withincmswith thenewSignerStoreCMSBuilder.setOriginalCMS(CMS originalCMS) Sets the original CMSSignedData, which internal field values will be copied to a new CMSSignedDatastatic voidCMSUtils.writeContentInfoEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the ContentInfo element to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.voidICMSUtils.writeContentInfoEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the ContentInfo element to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.static voidCMSUtils.writeSignedDataCertificatesEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.certificates field to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.voidICMSUtils.writeSignedDataCertificatesEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.certificates field to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.static voidCMSUtils.writeSignedDataCRLsEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.crls field to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.voidICMSUtils.writeSignedDataCRLsEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.crls field to the givenOutputStreamNOTE: This method is used for archive-time-stamp-v2 message-imprint computation.static voidCMSUtils.writeSignedDataDigestAlgorithmsEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.digestAlgorithms field to the givenOutputStreamNOTE: This method is used for evidence record hash computationvoidICMSUtils.writeSignedDataDigestAlgorithmsEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.digestAlgorithms field to the givenOutputStreamNOTE: This method is used for evidence record hash computationstatic voidCMSUtils.writeSignedDataSignerInfosEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.signerInfos field to the givenOutputStreamNOTE: This method is used for evidence record hash computationvoidICMSUtils.writeSignedDataSignerInfosEncoded(CMS cms, OutputStream os) Writes the encoded binaries of the SignedData.signerInfos field to the givenOutputStreamNOTE: This method is used for evidence record hash computationstatic eu.europa.esig.dss.model.DSSDocumentCMSUtils.writeToDSSDocument(CMS cms, eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder) Creates aDSSDocumentfrom the givenCMS.eu.europa.esig.dss.model.DSSDocumentICMSUtils.writeToDSSDocument(CMS cms, eu.europa.esig.dss.spi.signature.resources.DSSResourcesHandlerBuilder resourcesHandlerBuilder) Creates aDSSDocumentfrom the givenCMSusing the implementation based coding.