public class PcscCardChannel
extends java.lang.Object
implements de.gematik.ti.cardreader.provider.api.card.ICardChannel
Encapsulate a javax.CardChannel in gematik.ti.CardChannel
| Constructor and Description |
|---|
PcscCardChannel(javax.smartcardio.CardChannel channel,
PcscCard pcscCard) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
de.gematik.ti.cardreader.provider.api.card.ICard |
getCard() |
int |
getChannelNumber() |
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() |
void |
setAllocateLength(int length) |
de.gematik.ti.cardreader.provider.api.command.IResponseApdu |
transmit(de.gematik.ti.cardreader.provider.api.command.ICommandApdu command) |
public PcscCardChannel(javax.smartcardio.CardChannel channel,
PcscCard pcscCard)
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()
TODO: secureMessaging: Do only if it it required, channel must be know before if secureMessaging used.
getMaxMessageLength in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelpublic int getMaxResponseLength()
TODO: secureMessaging: Do only if it it required, channel must be know before if secureMessaging used.
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 command)
throws de.gematik.ti.cardreader.provider.api.card.CardException
transmit in interface de.gematik.ti.cardreader.provider.api.card.ICardChannelde.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.CardExceptionpublic void setAllocateLength(int length)