Class SmartCardConnectionHandler
java.lang.Object
com.yubico.yubikit.android.transport.usb.connection.SmartCardConnectionHandler
- All Implemented Interfaces:
ConnectionHandler<UsbSmartCardConnection>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(android.hardware.usb.UsbDevice usbDevice, android.hardware.usb.UsbDeviceConnection usbDeviceConnection) protected android.hardware.usb.UsbInterface
getClaimedInterface
(android.hardware.usb.UsbDevice usbDevice, android.hardware.usb.UsbDeviceConnection usbDeviceConnection) boolean
isAvailable
(android.hardware.usb.UsbDevice usbDevice)
-
Constructor Details
-
SmartCardConnectionHandler
public SmartCardConnectionHandler()
-
-
Method Details
-
createConnection
public UsbSmartCardConnection createConnection(android.hardware.usb.UsbDevice usbDevice, android.hardware.usb.UsbDeviceConnection usbDeviceConnection) throws IOException - Throws:
IOException
-
isAvailable
public boolean isAvailable(android.hardware.usb.UsbDevice usbDevice) - Specified by:
isAvailable
in interfaceConnectionHandler<T extends com.yubico.yubikit.core.YubiKeyConnection>
-
getClaimedInterface
protected android.hardware.usb.UsbInterface getClaimedInterface(android.hardware.usb.UsbDevice usbDevice, android.hardware.usb.UsbDeviceConnection usbDeviceConnection) throws IOException - Throws:
IOException
-