Class OtpConnectionHandler
java.lang.Object
com.yubico.yubikit.android.transport.usb.connection.OtpConnectionHandler
- All Implemented Interfaces:
ConnectionHandler<UsbOtpConnection>
-
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
-
OtpConnectionHandler
public OtpConnectionHandler()
-
-
Method Details
-
createConnection
public UsbOtpConnection 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
-