hwsecurity / de.cotech.hw / SecurityKeyManagerConfig / Builder /

Builder

open class Builder

Builder for SecurityKeyManagerConfig.

Functions

Name Summary
addExcludedActivityClass

open fun addExcludedActivityClass(clazz: Class): SecurityKeyManagerConfig.Builder

Add an Activity to the list of excluded Activities.

build

open fun build(): SecurityKeyManagerConfig

Constructs a SecurityKeyManagerConfig from the Builder.

setAllowUntestedUsbDevices

open fun setAllowUntestedUsbDevices(allowUntestedUsbDevices: Boolean): SecurityKeyManagerConfig.Builder

This setting controls whether “untested” USB devices will be dispatched or not.

setDisableNfcDiscoverySound

open fun setDisableNfcDiscoverySound(isDisableNfcDiscoverySound: Boolean): SecurityKeyManagerConfig.Builder

This setting controls whether the platform sound upon discovery of an NFC device will be suppressed.

setDisableWhileInactive

open fun setDisableWhileInactive(isDisableWhileInactive: Boolean): SecurityKeyManagerConfig.Builder

This setting disables managing NFC and USB connections while no callbacks are registered.

setEnableDebugLogging

open fun setEnableDebugLogging(isEnableDebugLogging: Boolean): SecurityKeyManagerConfig.Builder

This setting controls whether debug logging will be enabled.

setEnablePersistentNfcConnection

open fun setEnablePersistentNfcConnection(isEnablePersistentNfcConnection: Boolean): SecurityKeyManagerConfig.Builder

This setting enables presence monitoring for NFC tags, which will allow the use persistent of NFC tags.

setIgnoreNfcTagAfterUse

open fun setIgnoreNfcTagAfterUse(isIgnoreNfcTagAfterUse: Boolean): SecurityKeyManagerConfig.Builder

This setting debounces the NFC tag for 1500 ms after it has been used.

setSentryCaptureExceptionOnInternalError

open fun setSentryCaptureExceptionOnInternalError(isSentryCaptureExceptionOnInternalError: Boolean): SecurityKeyManagerConfig.Builder

This setting controls whether exceptions for internal errors shall be captured via Sentry.

setSentrySupportDisabled

open fun setSentrySupportDisabled(isSentrySupportDisabled: Boolean): SecurityKeyManagerConfig.Builder

This setting controls whether Sentry is support is generally enabled or not.

Properties

Name Summary
disableUsbPermissionFallback private open var disableUsbPermissionFallback: Boolean
loggingTree private open var loggingTree: HwTimber.Tree