summaryrefslogtreecommitdiff
path: root/smccSTAL/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-07-13 14:43:11 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-07-13 14:43:11 +0000
commit648d22da5ba5817549336a7787f4a51f33a27892 (patch)
tree066c420b84dda2e2588674456f0c4f42597f68cb /smccSTAL/src/main
parent4343cf050d45836266ce09241d53f47805d1dcc4 (diff)
downloadmocca-648d22da5ba5817549336a7787f4a51f33a27892.tar.gz
mocca-648d22da5ba5817549336a7787f4a51f33a27892.tar.bz2
mocca-648d22da5ba5817549336a7787f4a51f33a27892.zip
Display warning message in GUI if certificate expired
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1109 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smccSTAL/src/main')
-rw-r--r--smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java
index d67b37f3..63acdae1 100644
--- a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java
+++ b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java
@@ -103,8 +103,12 @@ public class InfoBoxReadRequestHandler extends AbstractRequestHandler {
log.info("signing certificate is valid");
} catch (CertificateExpiredException e) {
log.warn("signing certificate has expired!");
+ gui.showWarningDialog(BKUGUIFacade.WARNING_CERT_EXPIRED, null, this, null);
+ waitForAction();
} catch (CertificateNotYetValidException e) {
log.warn("signing certificate is not yet valid!");
+ gui.showErrorDialog(BKUGUIFacade.WARNING_CERT_NOTYETVALID, null, this, null);
+ waitForAction();
} catch (CertificateException e) {
log.error("Certificate decoding failed:", e);
}