diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-10 09:31:39 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-12-10 09:31:39 +0000 |
commit | 4b5edb3e74deed2c9b08bc7f56965cb8adf5c897 (patch) | |
tree | c3330fe4c5d41b544433399fa1531e3246540d85 /src/main/java | |
parent | 1b11b8777bb5f97277accd5d28851266d514211d (diff) | |
download | pdf-as-3-4b5edb3e74deed2c9b08bc7f56965cb8adf5c897.tar.gz pdf-as-3-4b5edb3e74deed2c9b08bc7f56965cb8adf5c897.tar.bz2 pdf-as-3-4b5edb3e74deed2c9b08bc7f56965cb8adf5c897.zip |
added atrust bku support
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@497 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/SimpleIdFormatter.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/SimpleIdFormatter.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/SimpleIdFormatter.java new file mode 100644 index 0000000..50da463 --- /dev/null +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/SimpleIdFormatter.java @@ -0,0 +1,25 @@ +package at.knowcenter.wag.egov.egiz.sig.sigid;
+
+/**
+ * {@link IdFormatter} implementation that uses specified algorithmid but not additional parameters.<br>
+ * usage A-Trust bku
+ * @author dferbas
+ *
+ */
+public class SimpleIdFormatter implements IdFormatter {
+ private String algorithmId;
+
+ public SimpleIdFormatter(String algorithmId) {
+ this.algorithmId = algorithmId;
+ }
+
+ public String formatIds(String[] ids, String algorithmParams) {
+ // dferbas
+ if (algorithmParams != null && algorithmParams.length() > 0) {
+ return this.algorithmId + ":" + algorithmParams;
+ } else {
+ return this.algorithmId;
+ }
+ }
+
+}
|