aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:19:33 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 13:19:33 +0000
commit173a54ff1c4112291e8e97650367ac2e0be1be47 (patch)
tree719ec8953bafb0f9af30b5a916345eb6458e5ac3
parent4ab9ca91b1aa314b783e0ef84e92f626e923ad25 (diff)
downloadpdf-as-3-173a54ff1c4112291e8e97650367ac2e0be1be47.tar.gz
pdf-as-3-173a54ff1c4112291e8e97650367ac2e0be1be47.tar.bz2
pdf-as-3-173a54ff1c4112291e8e97650367ac2e0be1be47.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@419 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r--src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java10
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());