Modifier and Type | Field and Description |
---|---|
private static final byte[] | |
private final CardImpl | |
private final int | |
private volatile boolean | |
private static final int | |
private static final boolean | |
private static final boolean | |
private static final boolean |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv void | |
private static void | |
public void | |
private byte[] | |
private byte[] | |
private static boolean | |
public Card | getCard()
Implements abstract javax. Returns the Card this channel is associated with. |
public int | getChannelNumber()
Implements abstract javax. Returns the channel number of this CardChannel. |
private static int | |
private static boolean | |
private void | |
public String | |
public ResponseAPDU | transmit(CommandAPDU
the command APDU command)Implements abstract javax. Transmits the specified command APDU to the Smart Card and returns the response APDU. |
public int | transmit(ByteBuffer
the buffer containing the command APDU command, ByteBuffer the buffer that shall receive the response APDU from
the card response)Implements abstract javax. Transmits the command APDU stored in the command ByteBuffer and receives the response APDU in the response ByteBuffer. |
B0 | back to summary |
---|---|
private static final byte[] B0 |
card | back to summary |
---|---|
private final CardImpl card |
channel | back to summary |
---|---|
private final int channel |
isClosed | back to summary |
---|---|
private volatile boolean isClosed |
RESPONSE_ITERATIONS | back to summary |
---|---|
private static final int RESPONSE_ITERATIONS |
t0GetResponse | back to summary |
---|---|
private static final boolean t0GetResponse |
t1GetResponse | back to summary |
---|---|
private static final boolean t1GetResponse |
t1StripLe | back to summary |
---|---|
private static final boolean t1StripLe |
ChannelImpl | back to summary |
---|---|
pack-priv ChannelImpl(CardImpl card, int channel) |
checkClosed | back to summary |
---|---|
pack-priv void checkClosed() |
checkManageChannel | back to summary |
---|---|
private static void checkManageChannel(byte[] b) |
close | back to summary |
---|---|
public void close() throws CardException Implements abstract javax. Doc from javax. Closes this CardChannel. The logical channel is closed by issuing
a Note that the basic logical channel cannot be closed using this
method. It can be closed by calling
|
concat | back to summary |
---|---|
private byte[] concat(byte[] b1, byte[] b2, int n2) |
doTransmit | back to summary |
---|---|
private byte[] doTransmit(byte[] command) throws CardException |
getBooleanProperty | back to summary |
---|---|
private static boolean getBooleanProperty(String name, boolean def) |
getCard | back to summary |
---|---|
public Card getCard() Implements abstract javax. Doc from javax. Returns the Card this channel is associated with.
|
getChannelNumber | back to summary |
---|---|
public int getChannelNumber() Implements abstract javax. Doc from javax. Returns the channel number of this CardChannel. A channel number of 0 indicates the basic logical channel.
|
getSW | back to summary |
---|---|
private static int getSW(byte[] res) throws CardException |
isOK | back to summary |
---|---|
private static boolean isOK(byte[] res) throws CardException |
setChannel | back to summary |
---|---|
private void setChannel(byte[] com) |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|
transmit | back to summary |
---|---|
public ResponseAPDU transmit(CommandAPDU command) throws CardException Implements abstract javax. Doc from javax. Transmits the specified command APDU to the Smart Card and returns the response APDU. The CLA byte of the command APDU is automatically adjusted to match the channel number of this CardChannel. Note that this method cannot be used to transmit
Implementations should transparently handle artifacts of the transmission protocol. For example, when using the T=0 protocol, the following processing should occur as described in ISO/IEC 7816-4:
The ResponseAPDU returned by this method is the result after this processing has been performed.
|
transmit | back to summary |
---|---|
public int transmit(ByteBuffer command, ByteBuffer response) throws CardException Implements abstract javax. Doc from javax. Transmits the command APDU stored in the command ByteBuffer and receives the response APDU in the response ByteBuffer. The command buffer must contain valid command APDU data starting
at The CLA byte of the command APDU is automatically adjusted to match the channel number of this CardChannel. Note that this method cannot be used to transmit
See transmit() for a discussion of the handling
of response APDUs with the SW1 values
|