diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-10-27 11:08:21 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-10-27 11:08:21 +0000 |
commit | 6d231f9014712a3b66b876b2a6ae7bc0ed32cb75 (patch) | |
tree | 633f96a57e01b45caf53371e36d035840bf447c4 /src/main/java/at | |
parent | d20795e32255b789a2c9a5f872a7958424c32ee4 (diff) | |
download | pdf-as-3-6d231f9014712a3b66b876b2a6ae7bc0ed32cb75.tar.gz pdf-as-3-6d231f9014712a3b66b876b2a6ae7bc0ed32cb75.tar.bz2 pdf-as-3-6d231f9014712a3b66b876b2a6ae7bc0ed32cb75.zip |
added support for dynamic algorithm suites / acos04
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@362 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUHelper.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUHelper.java index 43c9649..b5d7cc3 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUHelper.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/bku/BKUHelper.java @@ -20,6 +20,9 @@ import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+
+import at.gv.egiz.pdfas.algorithmSuite.AlgorithmMapper;
+import at.gv.egiz.pdfas.algorithmSuite.AlgorithmSuiteUtil;
import at.gv.egiz.pdfas.api.commons.Constants;
import at.gv.egiz.pdfas.exceptions.external.ExternalErrorException;
import at.gv.egiz.pdfas.impl.input.helper.DataSourceHelper;
@@ -315,7 +318,8 @@ public final class BKUHelper ids[2] = extractId(xmlResponse, "signed-data-object-"); //$NON-NLS-1$
ids[3] = extractId(xmlResponse, "etsi-data-reference-"); //$NON-NLS-1$
ids[4] = extractId(xmlResponse, "etsi-data-object-"); //$NON-NLS-1$
- String final_ids = id_formatter.formatIds(ids);
+
+ String algs = AlgorithmSuiteUtil.extractAlgorithmSuiteString(xmlResponse);
SignSignatureObject so = new SignSignatureObject();
so.date = sig_tim;
@@ -323,8 +327,9 @@ public final class BKUHelper so.signatureValue = sig_val;
so.x509Certificate = cert;
+ String final_ids = id_formatter.formatIds(ids, algs);
so.id = final_ids;
-
+
return so;
}
|