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/staticFrame | |
parent | deprecated tests which are used for deprecated functions only. (diff) | |
download | UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar.gz UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar.bz2 UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar.lz UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar.xz UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.tar.zst UIC-barcode-b6dc3080f4cc86e26a76dec7c0100dfb04d56664.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/staticFrame')
-rw-r--r-- | src/main/java/org/uic/barcode/staticFrame/StaticFrame.java | 5 |
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);
|