Search in sources :

Example 6 with DisconnectResponse

use of iso.std.iso_iec._24727.tech.schema.DisconnectResponse in project open-ecard by ecsec.

the class CardRecognitionImpl method disconnect.

private void disconnect(byte[] slotHandle) throws RecognitionException {
    // end exclusive card access
    EndTransaction end = new EndTransaction();
    end.setSlotHandle(slotHandle);
    EndTransactionResponse endTransactionResponse = (EndTransactionResponse) env.getDispatcher().safeDeliver(end);
    checkResult(endTransactionResponse.getResult());
    Disconnect d = new Disconnect();
    d.setSlotHandle(slotHandle);
    DisconnectResponse r = (DisconnectResponse) env.getDispatcher().safeDeliver(d);
    checkResult(r.getResult());
}
Also used : EndTransaction(iso.std.iso_iec._24727.tech.schema.EndTransaction) Disconnect(iso.std.iso_iec._24727.tech.schema.Disconnect) DisconnectResponse(iso.std.iso_iec._24727.tech.schema.DisconnectResponse) EndTransactionResponse(iso.std.iso_iec._24727.tech.schema.EndTransactionResponse)

Aggregations

DisconnectResponse (iso.std.iso_iec._24727.tech.schema.DisconnectResponse)6 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)4 Disconnect (iso.std.iso_iec._24727.tech.schema.Disconnect)4 CardApplicationDisconnect (iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnect)3 CardApplicationDisconnectResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationDisconnectResponse)3 EndTransaction (iso.std.iso_iec._24727.tech.schema.EndTransaction)3 EndTransactionResponse (iso.std.iso_iec._24727.tech.schema.EndTransactionResponse)3 BeginTransaction (iso.std.iso_iec._24727.tech.schema.BeginTransaction)2 BeginTransactionResponse (iso.std.iso_iec._24727.tech.schema.BeginTransactionResponse)2 CardApplicationConnect (iso.std.iso_iec._24727.tech.schema.CardApplicationConnect)2 CardApplicationConnectResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationConnectResponse)2 CardApplicationPath (iso.std.iso_iec._24727.tech.schema.CardApplicationPath)2 CardApplicationPathResponse (iso.std.iso_iec._24727.tech.schema.CardApplicationPathResponse)2 CardApplicationPathType (iso.std.iso_iec._24727.tech.schema.CardApplicationPathType)2 ChannelHandleType (iso.std.iso_iec._24727.tech.schema.ChannelHandleType)2 Connect (iso.std.iso_iec._24727.tech.schema.Connect)2 ConnectResponse (iso.std.iso_iec._24727.tech.schema.ConnectResponse)2 DIDAuthenticate (iso.std.iso_iec._24727.tech.schema.DIDAuthenticate)2 DIDAuthenticateResponse (iso.std.iso_iec._24727.tech.schema.DIDAuthenticateResponse)2 DestroyChannel (iso.std.iso_iec._24727.tech.schema.DestroyChannel)2