diff options
Diffstat (limited to 'src/test/java/at/gv')
-rw-r--r-- | src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java b/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java index 334c97d..ca0fe3b 100644 --- a/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java +++ b/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java @@ -1,5 +1,7 @@ package at.gv.egiz.pdfas.algorithmSuite;
+import javax.sound.midi.SysexMessage;
+
import junit.framework.TestCase;
@@ -39,6 +41,14 @@ public class AlgorithmSuiteTest extends TestCase { assertEquals("ripemd160", as.getCertDigestMethod());
assertEquals("ripemd160", as.getDataDigestMethod());
assertEquals("ripemd160", as.getPropertiesDigestMethod());
+
+ System.err.println("?????????????????");
+ as = new AlgorithmSuiteObject("ecdsa-sha1:ripemd160@207c44ff", false);
+ assertTrue(as.isSpecified());
+ assertEquals("ecdsa-sha1", as.getSignatureMethod());
+ assertEquals("ripemd160", as.getCertDigestMethod());
+ assertEquals("ripemd160", as.getDataDigestMethod());
+ assertEquals("ripemd160", as.getPropertiesDigestMethod());
as = new AlgorithmSuiteObject("etsi-bka-1.0@1254754266-364221555@10884-28158-0-19188-22825");
assertFalse(as.isSpecified());
|