public class UsbSession extends java.lang.Object implements YubiKeySession
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
android.hardware.usb.UsbDevice |
getUsbDevice()
Returns yubikey device attached to the android device with the android device acting as the USB host.
|
android.hardware.usb.UsbManager |
getUsbManager()
Get the UsbManager service used to interact with the YubiKey device.
|
int |
hashCode() |
UsbHidConnection |
openHidKeyboardConnection()
Creates and starts session for communication with yubikey using HID interface
|
Iso7816Connection |
openIso7816Connection()
Creates and starts session for communication with yubikey using protocol ISO-7816 if it's supported by connected device
|
public android.hardware.usb.UsbDevice getUsbDevice()
public android.hardware.usb.UsbManager getUsbManager()
public Iso7816Connection openIso7816Connection() throws java.io.IOException
YubiKeySession
openIso7816Connection
in interface YubiKeySession
java.io.IOException
- if CCID interface or endpoints are not foundpublic UsbHidConnection openHidKeyboardConnection() throws java.io.IOException
java.io.IOException
- if Keyboard HID interface or endpoints are not foundpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object