From c05dcddaf830c64559bc18a8cade2e4bf25a1fd5 Mon Sep 17 00:00:00 2001 From: ferbas Date: Tue, 27 Oct 2009 11:15:11 +0000 Subject: 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 --- .../knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/main/java') 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; -- cgit v1.2.3