Class RestDocumentValidationServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.validation.rest.RestDocumentValidationServiceImpl
- All Implemented Interfaces:
RestDocumentValidationService
,Serializable
public class RestDocumentValidationServiceImpl
extends Object
implements RestDocumentValidationService
REST implementation of the validation service
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null RemoteDocumentValidationService -
Method Summary
Modifier and TypeMethodDescriptiongetOriginalDocuments
(DataToValidateDTO dataToValidate) This method returns the original document(s) for the given signed file and optionally the signatureId.void
setValidationService
(RemoteDocumentValidationService validationService) Default constructorvalidateSignature
(DataToValidateDTO dataToValidate) This method returns the result of the validation of the signed file.
-
Constructor Details
-
RestDocumentValidationServiceImpl
public RestDocumentValidationServiceImpl()Default construction instantiating object with null RemoteDocumentValidationService
-
-
Method Details
-
setValidationService
Default constructor- Parameters:
validationService
-RemoteDocumentValidationService
-
validateSignature
Description copied from interface:RestDocumentValidationService
This method returns the result of the validation of the signed file. The results contains a Diagnostic Data, simple report, detailed report and ETSI Validation report- Specified by:
validateSignature
in interfaceRestDocumentValidationService
- Parameters:
dataToValidate
- aDataToValidateDTO
which contains the signature, the optional original document(s) and the optional validation policy- Returns:
- a
ReportsDTO
with 4 reports : the diagnostic data, the detailed report, the simple report and the ETSI validation report
-
getOriginalDocuments
Description copied from interface:RestDocumentValidationService
This method returns the original document(s) for the given signed file and optionally the signatureId.- Specified by:
getOriginalDocuments
in interfaceRestDocumentValidationService
- Parameters:
dataToValidate
- aDataToValidateDTO
which contains the signature, the optional original document and the optional signatureId- Returns:
- a List of
RemoteDocument
-