Enum Class SignInSettingsRules.Setting

java.lang.Object
java.lang.Enum<SignInSettingsRules.Setting>
com.iizix.server.user.mfa.SignInSettingsRules.Setting
All Implemented Interfaces:
Serializable, Comparable<SignInSettingsRules.Setting>, Constable
Enclosing class:
SignInSettingsRules

public static enum SignInSettingsRules.Setting extends Enum<SignInSettingsRules.Setting>
The settings of the page, each with its key in its container, its level, its kind and its range.
Author:
Christopher Mindus
  • Enum Constant Details

  • Field Details

    • level

      public final SignInSettingsRules.Level level
      The level.
    • key

      public final String key
      The key: the property name in its container, or the entry's key in the environment's map.
    • kind

      public final SignInSettingsRules.Kind kind
      The kind.
    • min

      public final int min
      The least value of a number or choice, or the least length of a text (0 for none).
    • max

      public final int max
      The most value of a number or choice, or the most length of a text (0 for none).
    • secret

      public final boolean secret
      Whether the value is a secret: its value is never logged (none is, today).
  • Method Details

    • values

      public static SignInSettingsRules.Setting[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SignInSettingsRules.Setting valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fullKey

      public String fullKey()
      Gets the name of the setting as the audit line and a person name it: the server key, the policy container and its key ($admin/minLength), or the environment entry's key.
      Returns:
      The full name.
    • isPasskey

      public boolean isPasskey()
      Checks if the setting is a passkey entry of an environment.
    • isStrong

      public boolean isStrong()
      Checks if the setting is a key of the strong authentication policy.
    • strongKey

      public String strongKey()
      Gets the key of a strong setting without its prefixes (count, ...), null for another setting.