From e9cfce38bb295d47459c8d976aa9a720719cfb75 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 2 Apr 2012 16:39:00 +0000 Subject: modify the GUI rendering @ Hardware-Info Panel @ Get-Certificate Panel git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1043 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../bku/smccstal/GETHardwareInfoRequestHandler.java | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'smccSTALExt/src/main') diff --git a/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/GETHardwareInfoRequestHandler.java b/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/GETHardwareInfoRequestHandler.java index d2b3b050..4e7fec6c 100644 --- a/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/GETHardwareInfoRequestHandler.java +++ b/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/GETHardwareInfoRequestHandler.java @@ -27,6 +27,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.gv.egiz.bku.gui.GetHardwareInfoGUIFacade; +import at.gv.egiz.smcc.SignatureCardException; import at.gv.egiz.stal.STALRequest; import at.gv.egiz.stal.STALResponse; import at.gv.egiz.stal.ext.GETHardwareInfoRequest; @@ -54,23 +55,14 @@ public class GETHardwareInfoRequestHandler extends AbstractRequestHandler { if (request instanceof GETHardwareInfoRequest) { - try { - String terminal = card.getTerminalName(); - String smartcard = card.toString(); - String smartcard_ATR = toString(card.getCard().getATR().getBytes()); - - } catch (SignatureCardException e) { - log.error("Some error occur during card communication.", e); - gui.showErrorDialog(GetHardwareInfoGUIFacade.ERR_CARD_NOTACTIVATED, - null, this, "cancel"); - } - - - GetHardwareInfoGUIFacade gui = (GetHardwareInfoGUIFacade) this.gui; + String terminal = card.getTerminalName(); + String smartcard = card.toString(); + String smartcard_ATR = toString(card.getCard().getATR().getBytes()); + gui.showHardwareInfoDialog(this, "back", terminal, smartcard, smartcard_ATR); - + while (true) { waitForAction(); @@ -83,6 +75,7 @@ public class GETHardwareInfoRequestHandler extends AbstractRequestHandler { log.info("unknown command resolved."); } } + } return new GETHardwareInfoResponse(); } -- cgit v1.2.3