diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2024-05-21 15:25:16 +0200 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2024-05-21 15:25:16 +0200 |
commit | b6dc3080f4cc86e26a76dec7c0100dfb04d56664 (patch) | |
tree | d906ae3b85cac5928563cf71e9e4b0069a19b3db /src/main/java/org/uic/barcode/Decoder.java | |
parent | deprecated tests which are used for deprecated functions only. (diff) | |
download | UIC-barcode-fixing_dsa_validation_without_algorithm.tar UIC-barcode-fixing_dsa_validation_without_algorithm.tar.gz UIC-barcode-fixing_dsa_validation_without_algorithm.tar.bz2 UIC-barcode-fixing_dsa_validation_without_algorithm.tar.lz UIC-barcode-fixing_dsa_validation_without_algorithm.tar.xz UIC-barcode-fixing_dsa_validation_without_algorithm.tar.zst UIC-barcode-fixing_dsa_validation_without_algorithm.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/Decoder.java')
-rw-r--r-- | src/main/java/org/uic/barcode/Decoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/uic/barcode/Decoder.java b/src/main/java/org/uic/barcode/Decoder.java index 0878d8d..d9f20ff 100644 --- a/src/main/java/org/uic/barcode/Decoder.java +++ b/src/main/java/org/uic/barcode/Decoder.java @@ -23,6 +23,7 @@ import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout; import org.uic.barcode.ticket.EncodingFormatException;
import org.uic.barcode.ticket.UicRailTicketCoder;
import org.uic.barcode.ticket.api.spec.IUicRailTicket;
+import org.uic.barcode.utils.SecurityUtils;
/**
@@ -165,6 +166,7 @@ public class Decoder { } else if (staticFrame != null) {
+ // guess the signature algorithm based on the signature size
if (staticFrame.verifyByAlgorithmOid(key,signingAlg, provider)) {
return Constants.LEVEL1_VALIDATION_OK;
} else {
|