Search in sources :

Example 1 with StepAction

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;
}
Also used : StepAction(org.openecard.gui.executor.StepAction)

Example 2 with StepAction

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;
}
Also used : StepAction(org.openecard.gui.executor.StepAction) Step(org.openecard.gui.definition.Step)

Example 3 with StepAction

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;
}
Also used : StepAction(org.openecard.gui.executor.StepAction)

Example 4 with StepAction

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;
}
Also used : StepAction(org.openecard.gui.executor.StepAction) RecognizedState(org.openecard.plugins.pinplugin.RecognizedState)

Example 5 with StepAction

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;
}
Also used : StepAction(org.openecard.gui.executor.StepAction) Step(org.openecard.gui.definition.Step)

Aggregations

StepAction (org.openecard.gui.executor.StepAction)10 Step (org.openecard.gui.definition.Step)6 StepActionResult (org.openecard.gui.executor.StepActionResult)4 DynamicContext (org.openecard.common.DynamicContext)2 ExecutionResults (org.openecard.gui.executor.ExecutionResults)2 DIDAuthenticationDataType (iso.std.iso_iec._24727.tech.schema.DIDAuthenticationDataType)1 EstablishChannel (iso.std.iso_iec._24727.tech.schema.EstablishChannel)1 EstablishChannelResponse (iso.std.iso_iec._24727.tech.schema.EstablishChannelResponse)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 WSException (org.openecard.common.WSHelper.WSException)1 AuthDataMap (org.openecard.common.anytype.AuthDataMap)1 AuthDataResponse (org.openecard.common.anytype.AuthDataResponse)1 Dispatcher (org.openecard.common.interfaces.Dispatcher)1 StepResult (org.openecard.gui.StepResult)1 Checkbox (org.openecard.gui.definition.Checkbox)1 PasswordField (org.openecard.gui.definition.PasswordField)1 Text (org.openecard.gui.definition.Text)1 ToggleText (org.openecard.gui.definition.ToggleText)1 RecognizedState (org.openecard.plugins.pinplugin.RecognizedState)1 EACData (org.openecard.sal.protocol.eac.EACData)1