diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2024-05-17 13:00:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 13:00:57 +0200 |
commit | 27338efe15425d40cefc048f2f51f5bb1b31962e (patch) | |
tree | 4fe4c630af90d132e4056187aa1c41d0cb856708 /src/test/java/org | |
parent | Merge pull request #75 from UnionInternationalCheminsdeFer/TI-decoding-issue (diff) | |
parent | deprecated functions replaced in the test (diff) | |
download | UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar.gz UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar.bz2 UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar.lz UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar.xz UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.tar.zst UIC-barcode-27338efe15425d40cefc048f2f51f5bb1b31962e.zip |
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java b/src/test/java/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java index 6533938..70d1968 100644 --- a/src/test/java/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java +++ b/src/test/java/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java @@ -86,7 +86,7 @@ public class DynamicFrameDoubleSignatureTest { try {
enc.setLevel1Algs(signatureAlgorithmOID, keyPairAlgorithmOID);
enc.setLevel2Algs(signatureAlgorithmOID, keyPairAlgorithmOID,keyPairLevel2.getPublic());
- enc.signLevel1("1080", keyPairLevel1.getPrivate(), signatureAlgorithmOID, "1");
+ enc.signLevel1("1080", keyPairLevel1.getPrivate(), signatureAlgorithmOID, "1",provider);
} catch (Exception e) {
assert(false);
}
@@ -97,7 +97,7 @@ public class DynamicFrameDoubleSignatureTest { IData level2Data = Level2TestDataFactory.getLevel2SimpleTestData();
try {
enc.setLevel2Data(level2Data);
- enc.signLevel2(keyPairLevel2.getPrivate());
+ enc.signLevel2(keyPairLevel2.getPrivate(),provider);
} catch (Exception e) {
assert(false);
}
@@ -126,7 +126,7 @@ public class DynamicFrameDoubleSignatureTest { int signatureCheck = 0;
try {
- signatureCheck = dec.validateLevel1(keyPairLevel1.getPublic(), null);
+ signatureCheck = dec.validateLevel1(keyPairLevel1.getPublic(), null,provider);
} catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
| UnsupportedOperationException | IOException | EncodingFormatException e) {
assert(false);
@@ -135,7 +135,7 @@ public class DynamicFrameDoubleSignatureTest { signatureCheck = 0;
try {
- signatureCheck = dec.validateLevel2();
+ signatureCheck = dec.validateLevel2(provider);
} catch (Exception e) {
assert(false);
}
|