diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-16 08:25:40 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-16 08:25:40 +0200 |
commit | bd578666b3bafbd6a197b3374f3fafea295bf937 (patch) | |
tree | 184579ee431bcad37980e21efada11db71449b48 | |
parent | 9ef09461edea68bdb13402349722bb6adc267e90 (diff) | |
download | pdf-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
-rw-r--r-- | pdf-as-lib/src/main/java/at/knowcenter/wag/egov/egiz/sig/sigid/DetachedMOCIdFormatter.java | 4 |
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();
}
|