summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2024-05-21 15:26:12 +0200
committerGitHub <noreply@github.com>2024-05-21 15:26:12 +0200
commit15bae0144b5c4ff140480ef86d8d13c7e778558d (patch)
treed906ae3b85cac5928563cf71e9e4b0069a19b3db /src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
parentMerge pull request #79 from UnionInternationalCheminsdeFer/fixing_test (diff)
parenttests changed to the functions including a dedicated provider (diff)
downloadUIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar.gz
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar.bz2
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar.lz
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar.xz
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.tar.zst
UIC-barcode-15bae0144b5c4ff140480ef86d8d13c7e778558d.zip
Diffstat (limited to 'src/main/java/org/uic/barcode/staticFrame/StaticFrame.java')
-rw-r--r--src/main/java/org/uic/barcode/staticFrame/StaticFrame.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
index bf97acb..a8d7651 100644
--- a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
+++ b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
@@ -706,6 +706,11 @@ public class StaticFrame {
* @throws IOException
*/
public boolean verifyByAlgorithmOid(PublicKey key, String signingAlg, Provider prov) throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, IllegalArgumentException, UnsupportedOperationException, IOException, EncodingFormatException {
+
+ if ((signingAlg == null || signingAlg.length() < 1) && this.getSignature() != null) {
+ signingAlg = SecurityUtils.getDsaAlgorithm(this.getSignature());
+ }
+
//find the algorithm name for the signature OID
String algo = null;
Service service = prov.getService("Signature",signingAlg);