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 forCMSDocumentAnalyzer
creation from aCMS
.CMSDocumentAnalyzer
(DSSDocument document) The default constructor forCMSDocumentAnalyzer
creation from aDSSDocument
.CMSDocumentAnalyzer
(org.bouncycastle.cms.CMSSignedData cmsSignedData) Deprecated.since DSS 6.3. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendExternalEvidenceRecords
(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)boolean
isSupported
(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 forCMSDocumentAnalyzer
creation from aCMS
.- Parameters:
cms
-CMS
representing the pkcs7-signature(s)
-
CMSDocumentAnalyzer
The default constructor forCMSDocumentAnalyzer
creation from aDSSDocument
.- Parameters:
document
- document to validate (with the signature(s))
-
-
Method Details
-
isSupported
Description copied from interface:DocumentAnalyzer
Checks if the document is supported by the current validator- Parameters:
dssDocument
-DSSDocument
to check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
buildSignatures
Description copied from class:DefaultDocumentAnalyzer
This method build a list of signatures to be extracted from a document- Overrides:
buildSignatures
in classDefaultDocumentAnalyzer
- Returns:
- a list of
AdvancedSignature
s
-
appendExternalEvidenceRecords
Description copied from class:DefaultDocumentAnalyzer
Appends detached evidence record provided to the validator to the corresponding signatures covering by the evidence record document- Overrides:
appendExternalEvidenceRecords
in classDefaultDocumentAnalyzer
- Parameters:
allSignatureList
- a list ofAdvancedSignature
s
-
getCMS
This method returns a CMS- Returns:
CMS
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzer
This method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-