hwsecurity-fido2 / de.cotech.hw.fido2 / WebViewWebauthnBridge /

WebViewWebauthnBridge

open class WebViewWebauthnBridge

If you are using a WebView for your login flow, you can use this WebViewWebauthnBridge for extending the WebView’s Javascript API with the WebAuthn APIs.

Note: Currently only compatible and tested with Android SDK >= 19 due to evaluateJavascript() calls.

Types

Name Summary
JsInterface open class JsInterface

Functions

Name Summary
createInstanceForWebView

open fun createInstanceForWebView(activity: AppCompatActivity, webView: WebView): WebViewWebauthnBridge
open fun createInstanceForWebView(activity: AppCompatActivity, webView: WebView, optionsBuilder: WebauthnDialogOptions.Builder): WebViewWebauthnBridge

Create an instance of the bridge from an activity and attach it to a WebView.

open fun createInstanceForWebView(context: Context, fragmentManager: FragmentManager, webView: WebView): WebViewWebauthnBridge
open fun createInstanceForWebView(context: Context, fragmentManager: FragmentManager, webView: WebView, optionsBuilder: WebauthnDialogOptions.Builder): WebViewWebauthnBridge

Create an instance of the bridge from anywhere using a FragmentManager and attach it to a WebView.

delegateOnPageStarted

open fun delegateOnPageStarted(view: WebView, url: String, favicon: Bitmap)

Call this in your WebViewClient.

delegateShouldInterceptRequest

open fun delegateShouldInterceptRequest(view: WebView, request: WebResourceRequest)
open fun delegateShouldInterceptRequest(view: WebView, url: String)

Call this in your WebViewClient.

setForceU2f

@Deprecated()

open fun setForceU2f(forceU2f: Boolean~~)~~