diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-04-02 16:39:00 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-04-02 16:39:00 +0000 |
commit | e9cfce38bb295d47459c8d976aa9a720719cfb75 (patch) | |
tree | fc32ba1969ed3a107b4ec620fe1bb72f813d279e /smccSTALExt/src/main/java/at | |
parent | f8db5af9c94285c4946bdf38407fe15ed1b7f818 (diff) | |
download | mocca-e9cfce38bb295d47459c8d976aa9a720719cfb75.tar.gz mocca-e9cfce38bb295d47459c8d976aa9a720719cfb75.tar.bz2 mocca-e9cfce38bb295d47459c8d976aa9a720719cfb75.zip |
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
Diffstat (limited to 'smccSTALExt/src/main/java/at')
-rw-r--r-- | smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/GETHardwareInfoRequestHandler.java | 21 |
1 files changed, 7 insertions, 14 deletions
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(); } |