Class CMSDocumentAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.cades.validation.CMSDocumentAnalyzer
- All Implemented Interfaces:
DocumentAnalyzer
Validation of CMS document
-
Field Summary
FieldsFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource -
Constructor Summary
ConstructorsConstructorDescriptionCMSDocumentAnalyzer(CMS cms) The constructor forCMSDocumentAnalyzercreation from aCMS.CMSDocumentAnalyzer(DSSDocument document) The default constructor forCMSDocumentAnalyzercreation from aDSSDocument.CMSDocumentAnalyzer(org.bouncycastle.cms.CMSSignedData cmsSignedData) Deprecated.since DSS 6.3. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendExternalEvidenceRecords(List<AdvancedSignature> allSignatureList) Appends detached evidence record provided to the validator to the corresponding signatures covering by the evidence record documentprotected List<AdvancedSignature> This method build a list of signatures to be extracted from a documentgetCMS()This method returns a CMSgetOriginalDocuments(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)booleanisSupported(DSSDocument dssDocument) Checks if the document is supported by the current validatorMethods inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
addReference, appendCounterSignatures, appendExternalEvidenceRecords, buildDetachedEvidenceRecords, buildDetachedTimestamps, buildEvidenceRecord, coversSignature, createValidationContext, fromDocument, getAllEvidenceRecords, getAllSignatures, getDetachedEvidenceRecords, getDetachedTimestamps, getDocument, getEvidenceRecord, getEvidenceRecordScopes, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampReaders, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, isTimestampCoveredByEvidenceRecord, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, processSignaturesValidation, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setDetachedEvidenceRecords, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate, validateContext, validateSignaturePolicy
-
Field Details
-
cms
The CMS to be validated
-
-
Constructor Details
-
CMSDocumentAnalyzer
Deprecated.since DSS 6.3. Please usenew CMSDocumentAnalyzer(CMS cms)constructor instead.The default constructor forCMSDocumentAnalyzer.- Parameters:
cmsSignedData- pkcs7-signature(s)
-
CMSDocumentAnalyzer
The constructor forCMSDocumentAnalyzercreation from aCMS.- Parameters:
cms-CMSrepresenting the pkcs7-signature(s)
-
CMSDocumentAnalyzer
The default constructor forCMSDocumentAnalyzercreation from aDSSDocument.- Parameters:
document- document to validate (with the signature(s))
-
-
Method Details
-
isSupported
Description copied from interface:DocumentAnalyzerChecks if the document is supported by the current validator- Parameters:
dssDocument-DSSDocumentto check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
buildSignatures
Description copied from class:DefaultDocumentAnalyzerThis method build a list of signatures to be extracted from a document- Overrides:
buildSignaturesin classDefaultDocumentAnalyzer- Returns:
- a list of
AdvancedSignatures
-
appendExternalEvidenceRecords
Description copied from class:DefaultDocumentAnalyzerAppends detached evidence record provided to the validator to the corresponding signatures covering by the evidence record document- Overrides:
appendExternalEvidenceRecordsin classDefaultDocumentAnalyzer- Parameters:
allSignatureList- a list ofAdvancedSignatures
-
getCMS
This method returns a CMS- Returns:
CMS
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzerThis method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for- Returns:
- list of
DSSDocuments
-