Interface KeePassRpcPairingObserver


public interface KeePassRpcPairingObserver
Observes progress and failures of the KeePassRPC pairing workflow.

UI adapters can use this interface to update status labels, enable buttons, or show diagnostics without embedding the protocol implementation into the UI.

  • Method Details

    • onPairingStarted

      void onPairingStarted(KeePassRpcPairingRequest request)
      Called before the service starts trying candidate endpoints.
      Parameters:
      request - effective pairing request
    • onKeePassConnectionWaiting

      void onKeePassConnectionWaiting(KeePassRpcEndpoint endpoint)
      Called before the service connects to one KeePassRPC endpoint.
      Parameters:
      endpoint - endpoint being tried
    • onKeePassUserConfirmationRequired

      void onKeePassUserConfirmationRequired(KeePassRpcPairingSession session)
      Called after the initial protocol step succeeded and KeePass should show a key.
      Parameters:
      session - open pairing session waiting for user confirmation
    • onPairingSucceeded

      void onPairingSucceeded(KeePassRpcPairingResult result)
      Called after the one-time key was accepted and the reusable SRP key was derived.
      Parameters:
      result - successful pairing result
    • onPairingFailed

      void onPairingFailed(KeePassRpcPairingException failure)
      Called when the pairing workflow fails.
      Parameters:
      failure - failure with endpoint and stable reason code