public interface DocumentValidator
| Modifier and Type | Method and Description |
|---|---|
void |
defineSigningCertificate(CertificateToken x509Certificate)
This method allows to define the signing certificate.
|
List<DSSDocument> |
getOriginalDocuments(String signatureId)
This method returns the signed document(s) without their signature(s)
|
List<AdvancedSignature> |
getSignatures()
Retrieves the signatures found in the document
|
List<AdvancedSignature> |
processSignaturesValidation(ValidationContext validationContext,
boolean structuralValidation) |
void |
setCertificateVerifier(CertificateVerifier certVerifier)
Provides a
CertificateVerifier to be used during the validation process. |
void |
setDetachedContents(List<DSSDocument> detachedContent)
Sets the
List of DSSDocument containing the original contents to sign, for detached signature
scenarios. |
void |
setProcessExecutor(ProcessExecutor processExecutor)
This method provides the possibility to set the specific
ProcessExecutor |
void |
setSignaturePolicyProvider(SignaturePolicyProvider signaturePolicyProvider)
This method allows to set a provider for Signature policies
|
void |
setValidationLevel(ValidationLevel validationLevel) |
eu.europa.esig.dss.validation.reports.Reports |
validateDocument()
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(eu.europa.esig.jaxb.policy.ConstraintsParameters validationPolicyJaxb)
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(File policyFile)
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(InputStream policyDataStream)
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(String policyResourcePath)
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(URL validationPolicyURL)
Validates the document and all its signatures.
|
eu.europa.esig.dss.validation.reports.Reports |
validateDocument(ValidationPolicy validationPolicy)
Validates the document and all its signatures.
|
List<AdvancedSignature> getSignatures()
void setCertificateVerifier(CertificateVerifier certVerifier)
CertificateVerifier to be used during the validation process.certVerifier - CertificateVerifiervoid setDetachedContents(List<DSSDocument> detachedContent)
List of DSSDocument containing the original contents to sign, for detached signature
scenarios.detachedContent - the List of DSSDocument to setvoid defineSigningCertificate(CertificateToken x509Certificate)
x509Certificate - void setValidationLevel(ValidationLevel validationLevel)
void setProcessExecutor(ProcessExecutor processExecutor)
ProcessExecutorprocessExecutor - void setSignaturePolicyProvider(SignaturePolicyProvider signaturePolicyProvider)
signaturePolicyProvider - eu.europa.esig.dss.validation.reports.Reports validateDocument()
Reports: diagnostic data, detailed report and simple reporteu.europa.esig.dss.validation.reports.Reports validateDocument(URL validationPolicyURL)
validationPolicyURL - Reports: diagnostic data, detailed report and simple reporteu.europa.esig.dss.validation.reports.Reports validateDocument(String policyResourcePath)
policyResourcePath - is located against the classpath (getClass().getResourceAsStream), and NOT the filesystemReports: diagnostic data, detailed report and simple reporteu.europa.esig.dss.validation.reports.Reports validateDocument(File policyFile)
File parameter specifies the constraint file. If null
or empty the default file is used.policyFile - contains the validation policy (xml) as FileReports: diagnostic data, detailed report and simple reporteu.europa.esig.dss.validation.reports.Reports validateDocument(InputStream policyDataStream)
policyDataStream - contains the validation policy (xml) as InputStreamReports: diagnostic data, detailed report and simple reporteu.europa.esig.dss.validation.reports.Reports validateDocument(eu.europa.esig.jaxb.policy.ConstraintsParameters validationPolicyJaxb)
validationPolicyJaxb contains the constraint file. If
null or empty the default file is used.validationPolicyJaxb - ConstraintsParameterseu.europa.esig.dss.validation.reports.Reports validateDocument(ValidationPolicy validationPolicy)
validationPolicy contains the constraint file. If null
or empty the default file is used.validationPolicy - ValidationPolicyList<DSSDocument> getOriginalDocuments(String signatureId) throws DSSException
signatureId - the id of the signature to be removed.DSSException - the exception is thrown when the removal is not possible.List<AdvancedSignature> processSignaturesValidation(ValidationContext validationContext, boolean structuralValidation)
Copyright © 2018. All rights reserved.