private String getSignedChecksum()

in src/main/java/com/epam/digital/data/platform/excerpt/worker/service/ExcerptService.java [143:165]


  private String getSignedChecksum(String cephKey) {
    Optional<CephObject> cephObject;
    try {
      cephObject = datafactoryCephService.get(bucket, cephKey);
    } catch (Exception e) {
      throw new ExcerptProcessingException(FAILED,
          "Failed retrieving ceph object by key: " + cephKey, e);
    }

    var signedExcerptContentStream =
        cephObject
            .orElseThrow(
                () ->
                    new ExcerptProcessingException(
                        FAILED, "Signed excerpt was not found in ceph. Key: " + cephKey))
            .getContent();

    try {
      return DigestUtils.sha256Hex(signedExcerptContentStream);
    } catch (IOException e) {
      throw new ExcerptProcessingException(FAILED, "Failed reading excerpt content from stream", e);
    }
  }