summaryrefslogtreecommitdiff
path: root/pdf-over-signer
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 10:11:35 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 10:11:35 +0200
commit434ad00d88ce24785b9d9edbcd03ffa562fd8a4e (patch)
treed68c5a06bf49ca8bff6fba48ab6ef068c4ad4804 /pdf-over-signer
parente9a7e90fda934dd5d053127470d0b849b1b8fc4b (diff)
downloadpdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.tar.gz
pdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.tar.bz2
pdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.zip
sanitizing NULLable config values
Diffstat (limited to 'pdf-over-signer')
-rw-r--r--pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java
index c045169a..6c368b16 100644
--- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java
+++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/Emblem.java
@@ -85,7 +85,7 @@ public class Emblem {
this.originalFileName = filename;
}
- private String getFileHash(String filename) throws IOException {
+ private static String getFileHash(String filename) throws IOException {
InputStream is = Files.newInputStream(Path.of(filename));
return DigestUtils.md5Hex(is);
}