public class CardChannel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CardChannel.Response |
static class |
CardChannel.SlotStatus |
Modifier and Type | Field and Description |
---|---|
private CcidInfo |
ccidInfo |
private boolean |
ignoreT0 |
private int |
indx |
private boolean |
isF |
private boolean |
isKzToken |
private int |
sequence |
private UsbDeviceConnection |
usbConnection |
private UsbEndpoint |
usbIn |
private UsbEndpoint |
usbInterrupt |
private UsbEndpoint |
usbOut |
Constructor and Description |
---|
CardChannel(UsbDeviceConnection usbConnection,
UsbEndpoint usbOut,
UsbEndpoint usbIn,
UsbEndpoint usbInterrupt,
CcidInfo ccidInfo) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
getAPDUData(byte[] data) |
private boolean |
isTPDUT1() |
CardChannel.Response |
transmit(byte cmd,
byte[] data,
byte rtn,
boolean waitIcc) |
ResponseAPDU |
transmit(CommandAPDU apdu) |
ResponseAPDU |
transmit(CommandAPDU apdu,
byte cmd,
byte rtn) |
private CardChannel.SlotStatus |
validateResponse(byte[] rsp,
byte type) |
private int sequence
private UsbDeviceConnection usbConnection
private UsbEndpoint usbOut
private UsbEndpoint usbIn
private UsbEndpoint usbInterrupt
private boolean isF
private CcidInfo ccidInfo
private boolean ignoreT0
private boolean isKzToken
private int indx
public CardChannel(UsbDeviceConnection usbConnection, UsbEndpoint usbOut, UsbEndpoint usbIn, UsbEndpoint usbInterrupt, CcidInfo ccidInfo)
private boolean isTPDUT1()
private byte[] getAPDUData(byte[] data)
public ResponseAPDU transmit(CommandAPDU apdu) throws CardException
CardException
public ResponseAPDU transmit(CommandAPDU apdu, byte cmd, byte rtn) throws CardException
CardException
public CardChannel.Response transmit(byte cmd, byte[] data, byte rtn, boolean waitIcc) throws java.io.IOException
java.io.IOException
private CardChannel.SlotStatus validateResponse(byte[] rsp, byte type) throws java.io.IOException
java.io.IOException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.