java.lang.Object
com.thalesgroup.gemalto.fido2.authenticator.passcode.PasscodeConfig

public class PasscodeConfig extends Object
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 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

      public static void setPasscodeRules(@NonNull PasscodeRule[] rules) throws Fido2Exception
      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 of PasscodeRule instances.
      Throws:
      Fido2Exception - Exception when unsafe environment detected.
      Since:
      1.3.0