From 648d22da5ba5817549336a7787f4a51f33a27892 Mon Sep 17 00:00:00 2001 From: tkellner Date: Fri, 13 Jul 2012 14:43:11 +0000 Subject: 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 --- .../main/java/at/gv/egiz/bku/smccstal/InfoBoxReadRequestHandler.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'smccSTAL') 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); } -- cgit v1.2.3