Class BruteForceConfiguration

java.lang.Object
com.auth0.json.mgmt.attackprotection.BruteForceConfiguration

public class BruteForceConfiguration extends Object
Represents the Brute Force Configuration
See Also:
  • Constructor Details

    • BruteForceConfiguration

      public BruteForceConfiguration()
  • Method Details

    • getEnabled

      public Boolean getEnabled()
      Returns:
      whether or not brute force protections are active.
    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets whether or not brute force protections are active.
      Parameters:
      enabled - whether or not brute force protections are active.
    • getShields

      public List<String> getShields()
      Returns:
      the action to take when a brute force configuration threshold is violated.
    • setShields

      public void setShields(List<String> shields)
      Sets the action to take when a brute force configuration threshold is violated.
      Parameters:
      shields - the action to take when a brute force configuration threshold is violated.
    • getAllowList

      public List<String> getAllowList()
      Returns:
      the list of trusted IP addresses that will not have attack protection enforced against them.
    • setAllowList

      public void setAllowList(List<String> allowList)
      Sets the list of trusted IP addresses that will not have attack protection enforced against them.
      Parameters:
      allowList - the list of trusted IP addresses that will not have attack protection enforced against them.
    • getMode

      public String getMode()
      Returns:
      gets the account lockout mode; determines whether or not IP address is used when counting failed attempts.
    • setMode

      public void setMode(String mode)
      Sets the account lockout mode; determines whether or not IP address is used when counting failed attempts.
      Parameters:
      mode - the account lockout mode; determines whether or not IP address is used when counting failed attempts.
    • getMaxAttempts

      public Integer getMaxAttempts()
      Returns:
      the maximum number of unsuccessful attempts.
    • setMaxAttempts

      public void setMaxAttempts(Integer maxAttempts)
      Sets the maximum number of unsuccessful attempts.
      Parameters:
      maxAttempts - the maximum number of unsuccessful attempts.