aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz')
-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;