Class PasscodeConfig
java.lang.Object
com.thalesgroup.gemalto.fido2.authenticator.passcode.PasscodeConfig
A global configuration class for the Passcode Authenticator.
The SDK provides reasonable and secure defaults. However, an application may use this class to customize the behavior, for example, by disabling keyboard scrambling or setting custom passcode complexity rules.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDisables the scrambling of the secure keyboard keys.static voidsetPasscodeRules(PasscodeRule[] rules) Sets custom complexity rules for passcodes.
-
Constructor Details
-
PasscodeConfig
public PasscodeConfig()
-
-
Method Details
-
disableScramble
public static void disableScramble()Disables the scrambling of the secure keyboard keys.By default, the keyboard is scrambled for security. Disabling this feature may improve usability but reduces security against shoulder-surfing attacks. This method should be called before any passcode operation is initiated.
- Since:
- 1.0.0
-
setPasscodeRules
Sets custom complexity rules for passcodes.This replaces the default set of rules. This method should be called before any passcode creation or change operation is initiated.
- Parameters:
rules- An array ofPasscodeRuleinstances.- Throws:
Fido2Exception- Exception when unsafe environment detected.- Since:
- 1.3.0
-