Class UsbSmartCardConnection
-
- All Implemented Interfaces:
-
com.yubico.yubikit.core.YubiKeyConnection,com.yubico.yubikit.core.smartcard.SmartCardConnection,java.io.Closeable,java.lang.AutoCloseable
public class UsbSmartCardConnection extends UsbYubiKeyConnection implements SmartCardConnectionUSB service for interacting with the YubiKey
-
-
Method Summary
Modifier and Type Method Description Array<byte>getAtr()TransportgetTransport()booleanisExtendedLengthApduSupported()Extended length APDUs are reported only for APDU-level readers, where the reader itself promises to frame them. Array<byte>sendAndReceive(Array<byte> apdu)-
Methods inherited from class com.yubico.yubikit.android.transport.usb.connection.UsbYubiKeyConnection
close -
Methods inherited from class com.yubico.yubikit.core.smartcard.SmartCardConnection
getAtr -
Methods inherited from class java.io.Closeable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTransport
Transport getTransport()
-
isExtendedLengthApduSupported
boolean isExtendedLengthApduSupported()
Extended length APDUs are reported only for APDU-level readers, where the reader itself promises to frame them.
A TPDU-level reader passes blocks through untouched, so what matters is what the card accepts - and nothing we read from it says whether that includes extended length. T1Protocol chains blocks in both directions, so the limit is no longer the 254 bytes a single block holds, but short APDUs remain the only path we can prove.
-
sendAndReceive
Array<byte> sendAndReceive(Array<byte> apdu)
-
-
-
-