From bd578666b3bafbd6a197b3374f3fafea295bf937 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 16 Apr 2014 08:25:40 +0200 Subject: Made append ID optional for A-Trust Xades 14 --- .../at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pdf-as-lib/src') diff --git a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java index 1ba7916..c6c8a9c 100644 --- a/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java +++ b/pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java @@ -70,7 +70,9 @@ public class DetachedMOCIdFormatter implements IdFormatter { if (algorithmParams != null && algorithmParams.length() > 0) { formattedIds.append(":").append(algorithmParams); } - formattedIds.append("@").append(ids[0]); + if(ids[0] != null) { + formattedIds.append("@").append(ids[0]); + } return formattedIds.toString(); } -- cgit v1.2.3