hwsecurity-fido2 / de.cotech.hw.fido2.ui / WebauthnDialogOptions / Builder /

Builder

abstract class Builder

Functions

Name Summary
build abstract fun build(): WebauthnDialogOptions
setAllowKeyboard

abstract fun setAllowKeyboard(allowKeyboard: Boolean): WebauthnDialogOptions.Builder

Shows a button to switch between numeric keypad and full soft-keyboard.

setAllowSkipPin

abstract fun setAllowSkipPin(allowSkipPin: Boolean): WebauthnDialogOptions.Builder

Shows a button to that allows to skip the PIN input when RP setsUserVerificationRequirement to “preferred"Default: false

setForceU2f abstract fun setForceU2f(forceU2f: Boolean): WebauthnDialogOptions.Builder
setFormFactor

abstract fun setFormFactor(formFactor: WebauthnDialogOptions.FormFactor): WebauthnDialogOptions.Builder

Option to choose the form factor displayed after the PIN input.

setPreventScreenshots

abstract fun setPreventScreenshots(preventScreenshots: Boolean): WebauthnDialogOptions.Builder

Sets FLAG_SECURE on the dialog fragment.

setShowSdkLogo

abstract fun setShowSdkLogo(showLogo: Boolean): WebauthnDialogOptions.Builder

Shows the Hardware Security SDK Logo with a clickable linkDefault: false

setTheme

abstract fun setTheme(theme: Int): WebauthnDialogOptions.Builder

Set your own custom theme for the dialog to change colors.

setTimeoutMs

abstract fun setTimeoutMs(timeoutMs: Long): WebauthnDialogOptions.Builder

Automatically aborts the authentication after a certain time.For native Android apps, we do not recommend setting a timeout.

setTitle

abstract fun setTitle(title: String): WebauthnDialogOptions.Builder

Title shown inside the dialogDefault: “Register your Security Key” or “Login with your Security Key”