Enum AuthModuleSecondFactorPolicy

    • Enum Constant Detail

      • ALWAYS_ASK

        public static final AuthModuleSecondFactorPolicy ALWAYS_ASK
        For now, it can't be set in the UI, but only in the auth-config.xml file
      • NEVER_ASK

        public static final AuthModuleSecondFactorPolicy NEVER_ASK
        Never ask for a second factor. After login, user with active 2FA will not be asked for it
      • SKIP_IF_EXTERNAL_2FA

        public static final AuthModuleSecondFactorPolicy SKIP_IF_EXTERNAL_2FA
        Skip the second factor for users, who configured it in another provider. Mostly applicable for OAuth providers.
    • Method Detail

      • values

        public static AuthModuleSecondFactorPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AuthModuleSecondFactorPolicy c : AuthModuleSecondFactorPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AuthModuleSecondFactorPolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null