use of org.openecard.gui.executor.StepAction in project open-ecard by ecsec.
the class CANStepAction method createReplacementStep.
/**
* Create the step that asks the user to insert the CAN.
*
* @return Step for CAN entry
*/
private Step createReplacementStep(boolean enteredWrong, boolean verifyFailed) {
String title = lang.translationForKey(CANSTEP_TITLE);
CANEntryStep canStep = new CANEntryStep("can-entry", title, capturePin, state, enteredWrong, verifyFailed);
StepAction pinAction = new CANStepAction(capturePin, conHandle, dispatcher, canStep, state);
canStep.setAction(pinAction);
return canStep;
}
use of org.openecard.gui.executor.StepAction in project open-ecard by ecsec.
the class ChangePINDialog method createChangePINStep.
/**
* Create the step that asks the user to insert the old and new pins.
*
* @return Step for PIN entry
*/
private Step createChangePINStep() {
int retryCounter = getRetryCounterFromState(state);
String title = lang.translationForKey(PINSTEP_TITLE);
Step changePINStep = new ChangePINStep("pin-entry", title, capturePin, retryCounter, false, false);
StepAction pinAction = new PINStepAction(capturePin, conHandle, dispatcher, changePINStep, retryCounter);
changePINStep.setAction(pinAction);
return changePINStep;
}
use of org.openecard.gui.executor.StepAction in project open-ecard by ecsec.
the class ChangePINDialog method createCANStep.
/**
* Create the step that asks the user to insert the CAN.
*
* @return Step for CAN entry
*/
private Step createCANStep() {
String title = lang.translationForKey(CANSTEP_TITLE);
CANEntryStep canStep = new CANEntryStep("can-entry", title, capturePin, state, false, false);
StepAction pinAction = new CANStepAction(capturePin, conHandle, dispatcher, canStep, state);
canStep.setAction(pinAction);
return canStep;
}
use of org.openecard.gui.executor.StepAction in project open-ecard by ecsec.
the class PINStepAction method createCANReplacementStep.
/**
* Create the step that asks the user to insert the CAN.
*
* @return Step for CAN entry
*/
private Step createCANReplacementStep() {
String title = lang.translationForKey(CANSTEP_TITLE);
RecognizedState state = RecognizedState.PIN_suspended;
CANEntryStep canStep = new CANEntryStep("can-entry", title, capturePin, state, false, false);
StepAction pinAction = new CANStepAction(capturePin, conHandle, dispatcher, canStep, state);
canStep.setAction(pinAction);
return canStep;
}
use of org.openecard.gui.executor.StepAction in project open-ecard by ecsec.
the class PINStepAction method createPINReplacementStep.
/**
* Create the step that asks the user to insert the old and new pins.
*
* @return Step for PIN entry
*/
private Step createPINReplacementStep(boolean enteredWrong, boolean verifyFailed) {
String title = lang.translationForKey(PINSTEP_TITLE);
Step changePINStep = new ChangePINStep("pin-entry", title, capturePin, retryCounter, enteredWrong, verifyFailed);
StepAction pinAction = new PINStepAction(capturePin, conHandle, dispatcher, changePINStep, retryCounter);
changePINStep.setAction(pinAction);
return changePINStep;
}
Aggregations