Class LedgerHIDAPI

java.lang.Object
com.jelurida.ardor.integration.wallet.ledger.LedgerDevice
com.jelurida.ardor.integration.wallet.ledger.LedgerHIDAPI
All Implemented Interfaces:
purejavahidapi.DeviceRemovalListener, purejavahidapi.InputReportListener

public class LedgerHIDAPI extends LedgerDevice implements purejavahidapi.InputReportListener, purejavahidapi.DeviceRemovalListener
A Ledger device connected via USB HID. This class is not thread safe.
  • Method Details

    • exchange

      public byte[] exchange(byte[] input)
      Specified by:
      exchange in class LedgerDevice
    • onInputReport

      public void onInputReport(purejavahidapi.HidDevice hidDevice, byte b, byte[] data, int length)
      Specified by:
      onInputReport in interface purejavahidapi.InputReportListener
    • onDeviceRemoval

      public void onDeviceRemoval(purejavahidapi.HidDevice hidDevice)
      Specified by:
      onDeviceRemoval in interface purejavahidapi.DeviceRemovalListener