Class CMSDocumentAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.cades.validation.CMSDocumentAnalyzer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bouncycastle.cms.CMSSignedDataThe CMSSignedData to be validatedFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource -
Constructor Summary
ConstructorsConstructorDescriptionCMSDocumentAnalyzer(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.CMSSignedDataThis method returns a CMSSignedDatagetOriginalDocuments(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, 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: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
-
getCmsSignedData
public org.bouncycastle.cms.CMSSignedData getCmsSignedData()This method returns a CMSSignedData- Returns:
CMSSignedData
-
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
-