aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 09:32:09 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 09:32:09 +0000
commit828790ea48d86a5c485c000eac60354f4471ed3b (patch)
tree9b1d4a3790cf19ae1002f836a9c32e8fbffbcc4c /src/main
parent4b5edb3e74deed2c9b08bc7f56965cb8adf5c897 (diff)
downloadpdf-as-3-828790ea48d86a5c485c000eac60354f4471ed3b.tar.gz
pdf-as-3-828790ea48d86a5c485c000eac60354f4471ed3b.tar.bz2
pdf-as-3-828790ea48d86a5c485c000eac60354f4471ed3b.zip
added atrust bku support
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@498 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/sigkz/SigKZIDHelper.java9
1 files changed, 8 insertions, 1 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 2e4dbaf..9a144db 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
@@ -22,7 +22,6 @@ import at.knowcenter.wag.egov.egiz.exceptions.SettingsException;
import at.knowcenter.wag.egov.egiz.framework.SignatorFactory;
import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject;
import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedLocRefMOAIdFormatter;
-import at.knowcenter.wag.egov.egiz.sig.sigid.DetachedMOCIdFormatter;
import at.knowcenter.wag.egov.egiz.sig.sigid.HotfixIdFormatter;
/**
@@ -217,4 +216,12 @@ public final class SigKZIDHelper
}
+ public static boolean isATrustSigned(SignSignatureObject so) {
+ String sig_id = so.id;
+ if (sig_id == null && StringUtils.isEmpty(sig_id)) {
+ return false;
+ }
+ return sig_id.startsWith("etsi-bka-atrust");
+ }
+
}