Class RemoteDocumentValidationService
java.lang.Object
eu.europa.esig.dss.ws.validation.common.RemoteDocumentValidationService
The remote validation service
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null certificate verifier -
Method Summary
Modifier and TypeMethodDescriptiongetOriginalDocuments
(DataToValidateDTO dataToValidate) Gets the original documentsprotected SignedDocumentValidator
initValidator
(DataToValidateDTO dataToValidate) Instantiates aSignedDocumentValidator
based on the request data DTOvoid
setDefaultValidationPolicy
(ValidationPolicy validationPolicy) Sets the validation policy to be used by default, when no policy provided within the requestvoid
setDefaultValidationPolicy
(InputStream validationPolicy) Sets the validation policy to be used by default, when no policy provided within the requestvoid
setVerifier
(CertificateVerifier verifier) Sets the certificate verifiervalidateDocument
(DataToValidateDTO dataToValidate) Validates the document
-
Constructor Details
-
RemoteDocumentValidationService
public RemoteDocumentValidationService()Default construction instantiating object with null certificate verifier
-
-
Method Details
-
setVerifier
Sets the certificate verifier- Parameters:
verifier
-CertificateVerifier
-
setDefaultValidationPolicy
Sets the validation policy to be used by default, when no policy provided within the request- Parameters:
validationPolicy
-InputStream
-
setDefaultValidationPolicy
Sets the validation policy to be used by default, when no policy provided within the request- Parameters:
validationPolicy
-ValidationPolicy
-
validateDocument
Validates the document- Parameters:
dataToValidate
-DataToValidateDTO
the request- Returns:
WSReportsDTO
response
-
getOriginalDocuments
Gets the original documents- Parameters:
dataToValidate
-DataToValidateDTO
request- Returns:
- a list of
RemoteDocument
s
-
initValidator
Instantiates aSignedDocumentValidator
based on the request data DTO- Parameters:
dataToValidate
-DataToValidateDTO
representing the request data- Returns:
SignedDocumentValidator
-