Class CMSDocumentValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.cades.validation.CMSDocumentValidator
- All Implemented Interfaces:
DocumentValidator
,ProcessExecutorProvider<DocumentProcessExecutor>
Validation of CMS document
In order to perform validation-process, please ensure the `dss-validation` module is loaded within the dependencies list of your project.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.bouncycastle.cms.CMSSignedData
The CMSSignedData to be validatedFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
documentAnalyzer, processExecutor
-
Constructor Summary
ConstructorDescriptionCMSDocumentValidator
(DSSDocument document) The default constructor forCMSDocumentValidator
.CMSDocumentValidator
(org.bouncycastle.cms.CMSSignedData cmsSignedData) The default constructor forCMSDocumentValidator
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.cms.CMSSignedData
This method returns a CMSSignedDataReturns the current instance ofDocumentAnalyzer
protected CAdESDiagnosticDataBuilder
This method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuilder
Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, fromDocument, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getOriginalDocuments, getSignatureById, getSignaturePolicyValidatorLoader, getSignatures, getValidationData, getValidationData, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Field Details
-
cmsSignedData
protected org.bouncycastle.cms.CMSSignedData cmsSignedDataThe CMSSignedData to be validated
-
-
Constructor Details
-
CMSDocumentValidator
public CMSDocumentValidator(org.bouncycastle.cms.CMSSignedData cmsSignedData) The default constructor forCMSDocumentValidator
.- Parameters:
cmsSignedData
- pkcs7-signature(s)
-
CMSDocumentValidator
The default constructor forCMSDocumentValidator
.- Parameters:
document
- document to validate (with the signature(s))
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidator
Returns the current instance ofDocumentAnalyzer
- Overrides:
getDocumentAnalyzer
in classSignedDocumentValidator
- Returns:
DocumentAnalyzer
-
getCmsSignedData
public org.bouncycastle.cms.CMSSignedData getCmsSignedData()This method returns a CMSSignedData- Returns:
CMSSignedData
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidator
This method creates a format-specific implementation of theSignedDocumentDiagnosticDataBuilder
- Overrides:
initializeDiagnosticDataBuilder
in classSignedDocumentValidator
- Returns:
SignedDocumentDiagnosticDataBuilder
-