From e126bd7af77b30710d9eec39cd08d1d63d605cec Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 10 Jul 2012 12:17:07 +0000 Subject: Cypriotic EID implementation working git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1094 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../gv/egiz/bku/pin/gui/ManagementPINProvider.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'smccSTALExt/src/main/java/at/gv/egiz/bku') diff --git a/smccSTALExt/src/main/java/at/gv/egiz/bku/pin/gui/ManagementPINProvider.java b/smccSTALExt/src/main/java/at/gv/egiz/bku/pin/gui/ManagementPINProvider.java index 89a349b4..fb571495 100644 --- a/smccSTALExt/src/main/java/at/gv/egiz/bku/pin/gui/ManagementPINProvider.java +++ b/smccSTALExt/src/main/java/at/gv/egiz/bku/pin/gui/ManagementPINProvider.java @@ -94,4 +94,27 @@ public class ManagementPINProvider extends AbstractPINProvider implements Modify } return gui.getPin(); } + +@Override +public char[] providePUK(PinInfo pinInfo, PinInfo pukInfo, int retries) + throws CancelledException, InterruptedException { + gui.showPUKDialog(type, pinInfo, pukInfo, (retry) ? retries : -1, + this, "change", + this, "cancel"); + + log.trace("[{}] wait for action.", Thread.currentThread().getName()); + waitForAction(); + log.trace("[{}] received action {}.", Thread.currentThread().getName(), action); + + gui.showMessageDialog(BKUGUIFacade.TITLE_WAIT, + BKUGUIFacade.MESSAGE_WAIT); + + if ("cancel".equals(action)) { + throw new CancelledException(pukInfo.getLocalizedName() + + " entry cancelled"); + } + retry = true; + return gui.getOldPin(); +} + } -- cgit v1.2.3