private String getInputParamsDigitalSignature()

in src/main/java/com/epam/digital/data/platform/bpwebservice/service/StartBpService.java [180:192]


  private String getInputParamsDigitalSignature(Map<String, Object> bpInputParameters) {
    log.debug("Signing input params with system signature - {}", bpInputParameters);
    try {
      var data = objectMapper.writeValueAsString(bpInputParameters);
      var signRequestDto = SignRequestDto.builder().data(data).build();
      var signResponse = digitalSealRestClient.sign(signRequestDto);
      log.debug("Input params were signed. Signature - {}", signResponse.getSignature());
      return signResponse.getSignature();
    } catch (JsonProcessingException | BaseException e) {
      log.error("Faced dso error", e);
      throw new DsoSignatureException(e);
    }
  }