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
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.bouncycastle.cms.CMSSignedData
The CMSSignedData to be validatedFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution
-
Constructor Summary
ModifierConstructorDescriptionCMSDocumentValidator
(DSSDocument document) The default constructor forCMSDocumentValidator
.protected
CMSDocumentValidator
(DSSDocument document, SignatureScopeFinder<CAdESSignature> signatureScopeFinder) Creates a validator from aDSSDocument
CMSDocumentValidator
(org.bouncycastle.cms.CMSSignedData cmsSignedData) The default constructor forCMSDocumentValidator
. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AdvancedSignature>
This method build a list of signatures to be extracted from a documentorg.bouncycastle.cms.CMSSignedData
This method returns a CMSSignedDatagetOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)protected CAdESDiagnosticDataBuilder
Initializes a relevantDiagnosticDataBuilder
for the given implementationboolean
isSupported
(DSSDocument dssDocument) Checks if the document is supported by the current validatorMethods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
addReference, appendCounterSignatures, assertConfigurationValid, buildDetachedTimestamps, createDiagnosticDataBuilder, findSignatureScopes, findTimestampScopes, fromDocument, getAllSignatures, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampScopeFinder, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureScopeFinder, prepareSignatureValidationContext, prepareTimestampScopeFinder, prepareValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationLevel, setValidationTime, validateContext, 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))
-
CMSDocumentValidator
protected CMSDocumentValidator(DSSDocument document, SignatureScopeFinder<CAdESSignature> signatureScopeFinder) Creates a validator from aDSSDocument
- Parameters:
document
-DSSDocument
representing a CMSSignedData to be validatedsignatureScopeFinder
-SignatureScopeFinder
to use
-
-
Method Details
-
isSupported
Description copied from class:SignedDocumentValidator
Checks if the document is supported by the current validator- Specified by:
isSupported
in classSignedDocumentValidator
- Parameters:
dssDocument
-DSSDocument
to check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
buildSignatures
Description copied from class:SignedDocumentValidator
This method build a list of signatures to be extracted from a document- Overrides:
buildSignatures
in classSignedDocumentValidator
- Returns:
- a list of
AdvancedSignature
s
-
getCmsSignedData
public org.bouncycastle.cms.CMSSignedData getCmsSignedData()This method returns a CMSSignedData- Returns:
CMSSignedData
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidator
Initializes a relevantDiagnosticDataBuilder
for the given implementation- Overrides:
initializeDiagnosticDataBuilder
in classSignedDocumentValidator
- Returns:
SignedDocumentDiagnosticDataBuilder
-
getOriginalDocuments
Description copied from interface:DocumentValidator
This method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-