Class XMLDocumentAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.xades.validation.XMLDocumentAnalyzer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Document
The root element of the document to validateThis variable contains the list ofXAdESPaths
adapted to the specific signature schema.Fields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
-
Constructor Summary
ConstructorDescriptionXMLDocumentAnalyzer
(DSSDocument dssDocument) The default constructor for XMLDocumentValidator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addXAdESPathsHolder
(XAdESPath xadesPathsHolder) This adds aXAdESPaths
.protected List
<AdvancedSignature> This method build a list of signatures to be extracted from a documentvoid
Removes all elements from the list of query holders.getOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)Returns the root element of the validating documentReturns an instance of a corresponding to the formatSignaturePolicyValidatorLoader
This getter returns theXAdESPaths
boolean
isSupported
(DSSDocument dssDocument) Checks if the document is supported by the current validatorvoid
setDisableXSWProtection
(boolean disableXSWProtection) NOT RECOMMENDED : This parameter allows disabling protection against XML Signature wrapping attacks (XSW).Methods 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, 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
-
xadesPathsHolders
-
rootElement
The root element of the document to validate
-
-
Constructor Details
-
XMLDocumentAnalyzer
The default constructor for XMLDocumentValidator. The created instance is initialised with defaultXAdESPaths
.- Parameters:
dssDocument
- The instance ofDSSDocument
to validate
-
-
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
-
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
-
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
-
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
-
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
-
getSignaturePolicyValidatorLoader
Description copied from class:DefaultDocumentAnalyzer
Returns an instance of a corresponding to the formatSignaturePolicyValidatorLoader
- Overrides:
getSignaturePolicyValidatorLoader
in classDefaultDocumentAnalyzer
- Returns:
SignaturePolicyValidatorLoader
-