diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2024-05-17 12:58:25 +0200 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2024-05-17 12:58:25 +0200 |
commit | f22394e098c44ea82ddc40af6e9852825b89b1b1 (patch) | |
tree | 4fe4c630af90d132e4056187aa1c41d0cb856708 | |
parent | Merge pull request #75 from UnionInternationalCheminsdeFer/TI-decoding-issue (diff) | |
download | UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar.gz UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar.bz2 UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar.lz UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar.xz UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.tar.zst UIC-barcode-f22394e098c44ea82ddc40af6e9852825b89b1b1.zip |
-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);
}
|