Skip to main content
Version: 4.62

encryptSettingsWithBiometry

Encrypts a value with personal biometric information. Uses the options available on the users device and operating system.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"description"StringDescription of the biometry pop-up.null
"negativeButton"StringText of the cancel button in the biometry pop-up.null
"onError"StringEvent that is fired if there was an error encrypting.null
"onErrorType"OnErrorTypeType of event that will be fired on error.null
"onSuccess" (required)StringEvent that is fired if the settings were encrypted.null
"onSuccessType"OnSuccessTypeType of event that will be fired on success.null
"settings" (required)ObjectMappings of settings to encrypt.null
"subTitle"StringSubtitle of the biometry pop-up.null
"title"StringTitle of biometry pop-up.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Encrypt settings with biometry

Show ExampleHide Example

Goal: Create a encryptSettingsWithBiometry action using the user's biometric authentification to encrypt settings.

Enrypt the specified settings using the user's biometric authentification.

{
"type": "encryptSettingsWithBiometry",
"leadingDelimiter": "{$",
"trailingDelimiter": "$}",
"dynamicParams": {
"userName": {
"context": "namedForm",
"field": "login:userName"
}
},
"params": {
"settings": {
"user": "{$userName$}"
},
"title": "$lang(biometryTitle)$",
"negativeButton": "$lang(cancel)$",
"onSuccess": "encryptSuccess",
"onError": "encryptError"
}
}