Class UsbSmartCardConnection
- java.lang.Object
-
- com.yubico.yubikit.android.transport.usb.connection.UsbSmartCardConnection
-
- All Implemented Interfaces:
com.yubico.yubikit.core.smartcard.SmartCardConnection,com.yubico.yubikit.core.YubiKeyConnection,java.io.Closeable,java.lang.AutoCloseable
public class UsbSmartCardConnection extends java.lang.Object implements com.yubico.yubikit.core.smartcard.SmartCardConnectionUSB service for interacting with the YubiKey https://www.usb.org/sites/default/files/DWG_Smart-Card_CCID_Rev110.pdf
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()com.yubico.yubikit.core.TransportgetTransport()booleanisExtendedLengthApduSupported()This connection generally supports Extended length APDUs.byte[]sendAndReceive(byte[] apdu)
-
-
-
Method Detail
-
getTransport
public com.yubico.yubikit.core.Transport getTransport()
- Specified by:
getTransportin interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
-
isExtendedLengthApduSupported
public boolean isExtendedLengthApduSupported()
This connection generally supports Extended length APDUs. This can be limited by firmware version of connected YubiKey.- Specified by:
isExtendedLengthApduSupportedin interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection
-
sendAndReceive
public byte[] sendAndReceive(byte[] apdu) throws java.io.IOException- Specified by:
sendAndReceivein interfacecom.yubico.yubikit.core.smartcard.SmartCardConnection- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-