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
ConstructorsConstructorDescriptionDefault 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.voidsetValidationService(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:RestDocumentValidationServiceThis 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:
validateSignaturein interfaceRestDocumentValidationService- Parameters:
dataToValidate- aDataToValidateDTOwhich contains the signature, the optional original document(s) and the optional validation policy- Returns:
- a
ReportsDTOwith 4 reports : the diagnostic data, the detailed report, the simple report and the ETSI validation report
-
getOriginalDocuments
Description copied from interface:RestDocumentValidationServiceThis method returns the original document(s) for the given signed file and optionally the signatureId.- Specified by:
getOriginalDocumentsin interfaceRestDocumentValidationService- Parameters:
dataToValidate- aDataToValidateDTOwhich contains the signature, the optional original document and the optional signatureId- Returns:
- a List of
RemoteDocument
-