Skip to main content
Version: 4.55

encryptSettingsWithBiometry

Encrypts settings using the user's biometric data.

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 using biometric authentification

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

The settings to be encrypted are specified in the settings parameter.

{
"type": "encryptSettingsWithBiometry",
"params": {
"leadingDelimiter": "{$",
"trailingDelimiter": "$}",
"dynamicParams": {
"userName": {
"context": "namedForm",
"field": "login:userName"
}
},
"settings": {
"user": "{$userName$}"
},
"onSuccess": "encryptSuccess",
"onError": "encryptError",
"title": "Check the biometry",
"subTitle": "For security reasons",
"description": "To encrypt settings",
"negativeButton": "No."
}
}

The title, subTitle, description and negaticeButton parameters specifiy the text that is displayed in the biometry pop-up.

Result:

A encryptSettingsWithBiometry action has been created.