java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.xades.validation.XMLDocumentValidator
- All Implemented Interfaces:
eu.europa.esig.dss.validation.DocumentValidator,eu.europa.esig.dss.validation.executor.ProcessExecutorProvider<eu.europa.esig.dss.validation.executor.DocumentProcessExecutor>
public class XMLDocumentValidator
extends eu.europa.esig.dss.validation.SignedDocumentValidator
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(eu.europa.esig.dss.model.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 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, getSignatures, getValidationData, getValidationData, initializeDiagnosticDataBuilder, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
XMLDocumentValidator
public XMLDocumentValidator(eu.europa.esig.dss.model.DSSDocument dssDocument) The default constructor for XMLDocumentValidator. The created instance is initialised with defaultXAdESPaths.- Parameters:
dssDocument- The instance ofDSSDocumentto validate
-
-
Method Details
-
getDocumentAnalyzer
- Overrides:
getDocumentAnalyzerin classeu.europa.esig.dss.validation.SignedDocumentValidator
-
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
-