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 Details

    • RestDocumentValidationServiceImpl

      public RestDocumentValidationServiceImpl()
      Default construction instantiating object with null RemoteDocumentValidationService
  • Method Details

    • setValidationService

      public void setValidationService(RemoteDocumentValidationService validationService)
      Default constructor
      Parameters:
      validationService - RemoteDocumentValidationService
    • validateSignature

      public WSReportsDTO validateSignature(DataToValidateDTO dataToValidate)
      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 interface RestDocumentValidationService
      Parameters:
      dataToValidate - a DataToValidateDTO 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

      public List<RemoteDocument> getOriginalDocuments(DataToValidateDTO dataToValidate)
      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 interface RestDocumentValidationService
      Parameters:
      dataToValidate - a DataToValidateDTO which contains the signature, the optional original document and the optional signatureId
      Returns:
      a List of RemoteDocument