Package com.aresstack.keepassrpc.pairing
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 Summary
Modifier and TypeMethodDescriptionvoidonKeePassConnectionWaiting(KeePassRpcEndpoint endpoint) Called before the service connects to one KeePassRPC endpoint.voidCalled after the initial protocol step succeeded and KeePass should show a key.voidCalled when the pairing workflow fails.voidonPairingStarted(KeePassRpcPairingRequest request) Called before the service starts trying candidate endpoints.voidCalled after the one-time key was accepted and the reusable SRP key was derived.
-
Method Details
-
onPairingStarted
Called before the service starts trying candidate endpoints.- Parameters:
request- effective pairing request
-
onKeePassConnectionWaiting
Called before the service connects to one KeePassRPC endpoint.- Parameters:
endpoint- endpoint being tried
-
onKeePassUserConfirmationRequired
Called after the initial protocol step succeeded and KeePass should show a key.- Parameters:
session- open pairing session waiting for user confirmation
-
onPairingSucceeded
Called after the one-time key was accepted and the reusable SRP key was derived.- Parameters:
result- successful pairing result
-
onPairingFailed
Called when the pairing workflow fails.- Parameters:
failure- failure with endpoint and stable reason code
-