hwsecurity-ui / de.cotech.hw.ui / SecurityKeyDialogFragment /

SecurityKeyDialogFragment

abstract class SecurityKeyDialogFragment< T : SecurityKey?> : PinInput.PinInputCallback, SecurityKeyDialogInterface, SecurityKeyDialogPresenter.View, SecurityKeyFormFactor.SelectTransportCallback

This abstract class is used by OpenPgpSecurityKeyDialogFragment and PivSecurityKeyDialogFragment.

This dialog shows helpful animations and handles all the PIN/PUK input for you. It still allows you full control over the operations you can execute on the Security Key.

Functions

Name Summary
cancel open fun cancel()
confirmPinInput open fun confirmPinInput()
dismiss open fun dismiss()
initPresenter abstract fun initPresenter(view: SecurityKeyDialogPresenter.View, context: Context, options: SecurityKeyDialogOptions): SecurityKeyDialogPresenter
initSecurityKeyConnectionMode abstract fun initSecurityKeyConnectionMode(arguments: Bundle)
onCancel open fun onCancel(dialog: DialogInterface)
onCreate open fun onCreate(savedInstanceState: Bundle)
onCreateDialog open fun onCreateDialog(savedInstanceState: Bundle): Dialog
onCreateView open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
onDetach open fun onDetach()
onDismiss open fun onDismiss(dialog: DialogInterface)
onPinEntered open fun onPinEntered(pinSecret: ByteSecret)
onSecurityKeyDialogDiscoveredCallback open fun onSecurityKeyDialogDiscoveredCallback(securityKey: SecurityKey, pinProvider: PinProvider)
onSecurityKeyDisconnected open fun onSecurityKeyDisconnected(securityKey: SecurityKey)
onSecurityKeyDiscovered open fun onSecurityKeyDiscovered(securityKey: SecurityKey)
onSecurityKeyDiscoveryFailed open fun onSecurityKeyDiscoveryFailed(exception: IOException)
onSecurityKeyFormFactorClickUsb open fun onSecurityKeyFormFactorClickUsb()
onViewCreated open fun onViewCreated(view: View, savedInstanceState: Bundle)
postDelayedRunnable open fun postDelayedRunnable(action: Runnable, delayMillis: Long): Boolean
postError open fun postError(exception: IOException)
postProgressMessage open fun postProgressMessage(message: String)
postRunnable open fun postRunnable(action: Runnable): Boolean
screeFullscreenNfc open fun screeFullscreenNfc()
screenConfirmWipe open fun screenConfirmWipe()
screenEnterPin open fun screenEnterPin(pinLength: Integer, showReset: Boolean, useKeyboard: Boolean)
screenError open fun screenError()
screenHoldSecurityKey open fun screenHoldSecurityKey()
screenResetPinEnterPinOrPuk abstract fun screenResetPinEnterPinOrPuk(pinLength: Integer)
open fun screenResetPinEnterPinOrPuk(pinOrPukLength: Integer)
screenResetPinSecurityKey open fun screenResetPinSecurityKey(formFactor: SecurityKeyDialogOptions.FormFactor)
screenSecurityKey open fun screenSecurityKey(pinLength: Integer, formFactor: SecurityKeyDialogOptions.FormFactor)
screenSetupChoosePin open fun screenSetupChoosePin(pinLength: Int)
screenSetupChoosePuk open fun screenSetupChoosePuk(pukLength: Int, setupPuk: ByteSecret)
screenSuccess open fun screenSuccess()
setSecurityKeyDialogCallback open fun setSecurityKeyDialogCallback(callback: SecurityKeyDialogInterface.SecurityKeyDialogCallback)
show open fun show(fragmentManager: FragmentManager)
showKeyboardPinInput open fun showKeyboardPinInput()
showKeypadPinInput open fun showKeypadPinInput()
successAndDismiss open fun successAndDismiss()
updateErrorViewText open fun updateErrorViewText(text: Int)
open fun updateErrorViewText(text: String)
updateSuccessViewText open fun updateSuccessViewText(text: Int)
open fun updateSuccessViewText(text: String)
updateTitle open fun updateTitle(titleResId: Int, descriptionResId: Int)
open fun updateTitle(titleResId: Int, description: String)
open fun updateTitle(title: String, descriptionResId: Int)
open fun updateTitle(title: String, description: String)

Properties

Name Summary
ARG_DIALOG_OPTIONS val ARG_DIALOG_OPTIONS: String
FRAGMENT_TAG val FRAGMENT_TAG: String