aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-04-16 08:25:40 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-04-16 08:25:40 +0200
commitbd578666b3bafbd6a197b3374f3fafea295bf937 (patch)
tree184579ee431bcad37980e21efada11db71449b48 /pdf-as-lib/src/main
parent9ef09461edea68bdb13402349722bb6adc267e90 (diff)
downloadpdf-as-3-bd578666b3bafbd6a197b3374f3fafea295bf937.tar.gz
pdf-as-3-bd578666b3bafbd6a197b3374f3fafea295bf937.tar.bz2
pdf-as-3-bd578666b3bafbd6a197b3374f3fafea295bf937.zip
Made append ID optional for A-Trust Xades 14REL-3.5.2
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java4
1 files changed, 3 insertions, 1 deletions
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();
}