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 Summary
Modifier and TypeMethodDescriptionGets an unmutable list of installed processors for "to be signed" documents.se.idsec.signservice.integration.SignRequestInputpreProcess(se.idsec.signservice.integration.SignRequestInput signRequestInput, IntegrationServiceConfiguration config, String callerId) Performs validation of the supplied sign request input against the supplied configuration.process(se.idsec.signservice.integration.SignRequestInput signRequestInput, String requestID, IntegrationServiceConfiguration config) Processes that sign request input and produces adss:SignRequestmessage.
-
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 returnedSignRequestInputobject is the supplied input updated with default values from the configuration.- Parameters:
signRequestInput- the sign request inputconfig- the configuration under which we are processing the requestcallerId- 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 adss:SignRequestmessage.- Parameters:
signRequestInput- the validated inputrequestID- the unique ID for this requestconfig- 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
-