aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 11:15:11 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-10-27 11:15:11 +0000
commitc05dcddaf830c64559bc18a8cade2e4bf25a1fd5 (patch)
tree7fd29b9f84df367f8697eaed8ad19a8194600e79 /src/main
parente2f20196c80c6563e6f49e3d3a71c9be963104a8 (diff)
downloadpdf-as-3-c05dcddaf830c64559bc18a8cade2e4bf25a1fd5.tar.gz
pdf-as-3-c05dcddaf830c64559bc18a8cade2e4bf25a1fd5.tar.bz2
pdf-as-3-c05dcddaf830c64559bc18a8cade2e4bf25a1fd5.zip
added support for dynamic algorithm suites / acos04
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@365 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java
index 5c3fc07..2e4dbaf 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java
@@ -70,9 +70,11 @@ public final class SigKZIDHelper
// new signature - sig_id decides
String [] ids = sig_id.split("@");
- String prefix = ids[0];
+ // dferbas
+ String prefix = (ids[0].split(":"))[0];
- if (prefix.equals(DetachedLocRefMOAIdFormatter.SIG_ID_PREFIX))
+
+ if (prefix.startsWith(DetachedLocRefMOAIdFormatter.SIG_ID_PREFIX))
{
return true;
}
@@ -107,7 +109,7 @@ public final class SigKZIDHelper
if (StringUtils.isEmpty(sig_id)) {
return false;
}
- String[] ids = sig_id.split("@");
+ String[] ids = sig_id.split("@");
if (ArrayUtils.isEmpty(ids)) {
return false;
}
@@ -126,7 +128,8 @@ public final class SigKZIDHelper
if (StringUtils.isEmpty(algorithmParameter)) {
return null;
}
- String[] ids = algorithmParameter.split("@");
+ // dferbas
+ String[] ids = algorithmParameter.split("@")[0].split(":");
if (ArrayUtils.isEmpty(ids)) {
return null;
}
@@ -152,7 +155,8 @@ public final class SigKZIDHelper
{
return true;
}
- if (sig_id_parts[0].equals(HotfixIdFormatter.SIG_ID_PREFIX))
+ // dferbas
+ if (sig_id_parts[0].startsWith(HotfixIdFormatter.SIG_ID_PREFIX))
{
return false;