java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.cades.validation.CMSDocumentAnalyzer
- All Implemented Interfaces:
eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer
public class CMSDocumentAnalyzer
extends eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
Validation of CMS document
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected eu.europa.esig.dss.cms.CMSThe CMS to be validatedFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource -
Constructor Summary
ConstructorsConstructorDescriptionCMSDocumentAnalyzer(eu.europa.esig.dss.cms.CMS cms) The constructor forCMSDocumentAnalyzercreation from aCMS.CMSDocumentAnalyzer(eu.europa.esig.dss.model.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<eu.europa.esig.dss.spi.signature.AdvancedSignature> allSignatureList) protected List<eu.europa.esig.dss.spi.signature.AdvancedSignature> eu.europa.esig.dss.cms.CMSgetCMS()This method returns a CMSList<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(eu.europa.esig.dss.spi.signature.AdvancedSignature advancedSignature) booleanisSupported(eu.europa.esig.dss.model.DSSDocument dssDocument) Methods 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
protected eu.europa.esig.dss.cms.CMS cmsThe 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
public CMSDocumentAnalyzer(eu.europa.esig.dss.cms.CMS cms) The constructor forCMSDocumentAnalyzercreation from aCMS.- Parameters:
cms-CMSrepresenting the pkcs7-signature(s)
-
CMSDocumentAnalyzer
public CMSDocumentAnalyzer(eu.europa.esig.dss.model.DSSDocument document) The default constructor forCMSDocumentAnalyzercreation from aDSSDocument.- Parameters:
document- document to validate (with the signature(s))
-
-
Method Details
-
isSupported
public boolean isSupported(eu.europa.esig.dss.model.DSSDocument dssDocument) -
buildSignatures
- Overrides:
buildSignaturesin classeu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
-
appendExternalEvidenceRecords
protected void appendExternalEvidenceRecords(List<eu.europa.esig.dss.spi.signature.AdvancedSignature> allSignatureList) - Overrides:
appendExternalEvidenceRecordsin classeu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
-
getCMS
public eu.europa.esig.dss.cms.CMS getCMS()This method returns a CMS- Returns:
CMS
-
getOriginalDocuments
public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(eu.europa.esig.dss.spi.signature.AdvancedSignature advancedSignature)
-