diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-07-10 12:17:07 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-07-10 12:17:07 +0000 |
commit | e126bd7af77b30710d9eec39cd08d1d63d605cec (patch) | |
tree | 9582f75bbe347fc648db0a72c2c0a9988a662332 /smccSTALExt/src/main/java/at | |
parent | 10511e7cd7cc64b5d2ff115057ad31b84127f333 (diff) | |
download | mocca-e126bd7af77b30710d9eec39cd08d1d63d605cec.tar.gz mocca-e126bd7af77b30710d9eec39cd08d1d63d605cec.tar.bz2 mocca-e126bd7af77b30710d9eec39cd08d1d63d605cec.zip |
Cypriotic EID implementation working
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1094 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smccSTALExt/src/main/java/at')
-rw-r--r-- | smccSTALExt/src/main/java/at/gv/egiz/bku/pin/gui/ManagementPINProvider.java | 23 |
1 files changed, 23 insertions, 0 deletions
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(); +} + } |