Class CMSDocumentAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.cades.validation.CMSDocumentAnalyzer
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.bouncycastle.cms.CMSSignedData
The CMSSignedData to be validatedFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
-
Constructor Summary
ConstructorDescriptionCMSDocumentAnalyzer
(DSSDocument document) The default constructor forCMSDocumentValidator
.CMSDocumentAnalyzer
(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)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, 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
-
cmsSignedData
protected org.bouncycastle.cms.CMSSignedData cmsSignedDataThe CMSSignedData to be validated
-
-
Constructor Details
-
CMSDocumentAnalyzer
public CMSDocumentAnalyzer(org.bouncycastle.cms.CMSSignedData cmsSignedData) The default constructor forCMSDocumentValidator
.- Parameters:
cmsSignedData
- pkcs7-signature(s)
-
CMSDocumentAnalyzer
The default constructor forCMSDocumentValidator
.- 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
-
getCmsSignedData
public org.bouncycastle.cms.CMSSignedData getCmsSignedData()This method returns a CMSSignedData- Returns:
CMSSignedData
-
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
-