Class XMLDocumentValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.xades.validation.XMLDocumentValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<DocumentProcessExecutor>
Validator of XML Signed document
In order to perform validation-process, please ensure the `dss-validation` module is loaded within the dependencies list of your project.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
documentAnalyzer, processExecutor -
Constructor Summary
ConstructorsConstructorDescriptionXMLDocumentValidator(DSSDocument dssDocument) The default constructor for XMLDocumentValidator. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXAdESPathsHolder(XAdESPath xadesPathsHolder) This adds aXAdESPaths.voidRemoves all elements from the list of query holders.Returns the current instance ofDocumentAnalyzerReturns the root element of the validating documentThis getter returns theXAdESPathsvoidsetDisableXSWProtection(boolean disableXSWProtection) NOT RECOMMENDED : This parameter allows disabling protection against XML Signature wrapping attacks (XSW).Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, fromDocument, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getOriginalDocuments, getSignatureById, getSignaturePolicyValidatorLoader, getSignatures, getValidationData, getValidationData, initializeDiagnosticDataBuilder, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
XMLDocumentValidator
The default constructor for XMLDocumentValidator. The created instance is initialised with defaultXAdESPaths.- Parameters:
dssDocument- The instance ofDSSDocumentto validate
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidatorReturns the current instance ofDocumentAnalyzer- Overrides:
getDocumentAnalyzerin classSignedDocumentValidator- Returns:
DocumentAnalyzer
-
setDisableXSWProtection
public void setDisableXSWProtection(boolean disableXSWProtection) NOT RECOMMENDED : This parameter allows disabling protection against XML Signature wrapping attacks (XSW). It disables the research by XPath expression for defined Type attributes.- Parameters:
disableXSWProtection- true to disable the protection
-
getXAdESPathsHolder
-
addXAdESPathsHolder
-
clearQueryHolders
public void clearQueryHolders()Removes all elements from the list of query holders. The list will be empty after this call returns. -
getRootElement
-