Class WebAuthnClientException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class WebAuthnClientException
    extends Exception
                        

    A terminal WebAuthn client error returned by FidoClient when a request cannot be satisfied and retrying would not help — e.g. an unsupported extension request (largeBlob write with more than one allowed credential). Distinct from a kotlin.coroutines.cancellation.CancellationException, which signals the user dismissing the flow: this carries the actual reason so the caller can react to it (a WebView bridge, for instance, rejects the page's promise with a DOMException of webAuthnError).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getWebAuthnError() the WebAuthn DOMException name for this failure, e.g.
      • Methods inherited from class kotlin.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebAuthnClientException

        WebAuthnClientException(String webAuthnError, String message)
    • Method Detail

      • getWebAuthnError

         final String getWebAuthnError()

        the WebAuthn DOMException name for this failure, e.g. "NotSupportedError" (spec NotSupportedError) or "SyntaxError" (malformed request input).