diff options
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java index 98a164d..5b516f2 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java @@ -821,6 +821,11 @@ public abstract class PdfAS {
throw new SignatureException(312, "Document can not be verified because no signature object are set.");
}
+
+ // added by tknall
+ if (so_to_be_verified.getX509Cert() == null) {
+ throw new SignatureException(313, "Document certificate is not defined.");
+ }
// FIXME this has to be made better
SignatureData sd = null;
@@ -878,6 +883,11 @@ public abstract class PdfAS throw new SignatureException(312, "Document can not be verified because no signature object are set.");
}
+ // added by tknall
+ if (so_to_be_verified.getX509Cert() == null) {
+ throw new SignatureException(313, "Document certificate is not defined.");
+ }
+
// FIXME this has to be made better
SignatureData sd = null;
if (so_to_be_verified.isBinary())
|