Interface SignRequestProcessor

All Known Implementing Classes:
DefaultSignRequestProcessor

public interface SignRequestProcessor
An interface that defines the operations for a SignRequest processor.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Method Details

    • preProcess

      se.idsec.signservice.integration.SignRequestInput preProcess(se.idsec.signservice.integration.SignRequestInput signRequestInput, IntegrationServiceConfiguration config, String callerId) throws se.idsec.signservice.integration.core.error.InputValidationException
      Performs validation of the supplied sign request input against the supplied configuration. The returned SignRequestInput object is the supplied input updated with default values from the configuration.
      Parameters:
      signRequestInput - the sign request input
      config - the configuration under which we are processing the request
      callerId - optional ID for the calling entity
      Returns:
      an updated sign request input object where all required fields are filled in
      Throws:
      se.idsec.signservice.integration.core.error.InputValidationException - if validation of the input fails
    • process

      SignRequestProcessingResult process(se.idsec.signservice.integration.SignRequestInput signRequestInput, String requestID, IntegrationServiceConfiguration config) throws se.idsec.signservice.integration.core.error.SignServiceIntegrationException
      Processes that sign request input and produces a dss:SignRequest message.
      Parameters:
      signRequestInput - the validated input
      requestID - the unique ID for this request
      config - configuration
      Returns:
      the SignRequest
      Throws:
      se.idsec.signservice.integration.core.error.SignServiceIntegrationException - for processing errors
    • getTbsDocumentProcessors

      List<TbsDocumentProcessor<?>> getTbsDocumentProcessors()
      Gets an unmutable list of installed processors for "to be signed" documents.
      Returns:
      the processors for tbsDocuments