Interface EnvProps.IPasskeyCallback

Enclosing class:
EnvProps
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EnvProps.IPasskeyCallback
The answer to a passkey ceremony the client ran.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPasskeyResult(String credentialJSON, String error)
    Called once per request that is not cancelled, on the worker of the application session (on the thread of the answer when the environment has no application session, as in a test), with the credential or with the error.
  • Method Details

    • onPasskeyResult

      void onPasskeyResult(String credentialJSON, String error)
      Called once per request that is not cancelled, on the worker of the application session (on the thread of the answer when the environment has no application session, as in a test), with the credential or with the error.
      Parameters:
      credentialJSON - The JSON text of the credential, PublicKeyCredential.toJSON() as the client made it, unchanged: for the finishPasskeyAssertion or finishPasskeyRegistration of IUserAuthenticationUI. Null with an error.
      error - Null with a credential; otherwise the name of the DOMException that ended the ceremony in the client - EnvProps.PASSKEY_NOT_ALLOWED, EnvProps.PASSKEY_INVALID_STATE, EnvProps.PASSKEY_ABORTED, EnvProps.PASSKEY_NOT_SUPPORTED, NotFoundError (the component is not in the client's page), SyntaxError (options that are no JSON), or another one the Browser threw - or EnvProps.PASSKEY_RENEWAL_FAILED.