use of iso.std.iso_iec._24727.tech.schema.Disconnect in project open-ecard by ecsec.
the class UnblockPINAction method execute.
@Override
public void execute() {
// check if a german identity card is inserted, if not wait for it
ConnectionHandleType cHandle = waitForCardType(GERMAN_IDENTITY_CARD);
if (cHandle == null) {
logger.debug("User cancelled card insertion.");
return;
}
cHandle = connectToRootApplication(cHandle);
RecognizedState pinState = recognizeState(cHandle);
boolean nativePace;
try {
nativePace = genericPACESupport(cHandle);
} catch (WSException e) {
logger.error("Could not get capabilities from reader.");
return;
}
UnblockPINDialog uc = new UnblockPINDialog(gui, dispatcher, cHandle, pinState, !nativePace);
uc.show();
Disconnect d = new Disconnect();
d.setSlotHandle(cHandle.getSlotHandle());
dispatcher.safeDeliver(d);
}
use of iso.std.iso_iec._24727.tech.schema.Disconnect in project open-ecard by ecsec.
the class TCTokenHandler method disconnectHandle.
public static void disconnectHandle(Dispatcher dispatcher, ConnectionHandleType connectionHandle) {
// disconnect card after authentication
CardApplicationDisconnect appDis = new CardApplicationDisconnect();
appDis.setConnectionHandle(connectionHandle);
appDis.setAction(ActionType.RESET);
dispatcher.safeDeliver(appDis);
}
Aggregations