public class IdentosCardChannel
extends java.lang.Object
implements de.gematik.ti.cardreader.provider.api.card.ICardChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the logical channel
|
de.gematik.ti.cardreader.provider.api.card.ICard |
getCard()
Returns the connected card object
|
int |
getChannelNumber()
Returns the number of channel
|
int |
getMaxMessageLength()
TODO: secureMessaging: Do only if it it required, channel must be know before if secureMessaging used.
|
int |
getMaxResponseLength()
TODO: secureMessaging: Do only if it it required, channel must be know before if secureMessaging used.
|
boolean |
isExtendedLengthSupported() |
int |
transmit(java.nio.ByteBuffer command,
java.nio.ByteBuffer response)
Returns the length of the response byte array after sending an command APDU
|
de.gematik.ti.cardreader.provider.api.command.IResponseApdu |
transmit(de.gematik.ti.cardreader.provider.api.command.ICommandApdu commandAPDU)
Returns the responseAPDU after transmitting a commandAPDU
|
public de.gematik.ti.cardreader.provider.api.card.ICard getCard()
getCard in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic int getChannelNumber()
getChannelNumber in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic boolean isExtendedLengthSupported()
isExtendedLengthSupported in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic int getMaxMessageLength()
getMaxMessageLength in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic int getMaxResponseLength()
getMaxResponseLength in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic de.gematik.ti.cardreader.provider.api.command.IResponseApdu transmit(de.gematik.ti.cardreader.provider.api.command.ICommandApdu commandAPDU)
throws de.gematik.ti.cardreader.provider.api.card.CardException
transmit in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelcommandAPDU - de.gematik.ti.cardreader.provider.api.card.CardExceptionpublic int transmit(java.nio.ByteBuffer command,
java.nio.ByteBuffer response)
throws de.gematik.ti.cardreader.provider.api.card.CardException
command - response - de.gematik.ti.cardreader.provider.api.card.CardExceptionpublic void close()
throws de.gematik.ti.cardreader.provider.api.card.CardException
close in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelde.gematik.ti.cardreader.provider.api.card.CardException