Class BruteForceConfiguration
java.lang.Object
com.auth0.json.mgmt.attackprotection.BruteForceConfiguration
Represents the Brute Force Configuration
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMode()
void
setAllowList
(List<String> allowList) Sets the list of trusted IP addresses that will not have attack protection enforced against them.void
setEnabled
(Boolean enabled) Sets whether or not brute force protections are active.void
setMaxAttempts
(Integer maxAttempts) Sets the maximum number of unsuccessful attempts.void
Sets the account lockout mode; determines whether or not IP address is used when counting failed attempts.void
setShields
(List<String> shields) Sets the action to take when a brute force configuration threshold is violated.
-
Constructor Details
-
BruteForceConfiguration
public BruteForceConfiguration()
-
-
Method Details
-
getEnabled
- Returns:
- whether or not brute force protections are active.
-
setEnabled
Sets whether or not brute force protections are active.- Parameters:
enabled
- whether or not brute force protections are active.
-
getShields
- Returns:
- the action to take when a brute force configuration threshold is violated.
-
setShields
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
- Returns:
- the list of trusted IP addresses that will not have attack protection enforced against them.
-
setAllowList
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
- Returns:
- gets the account lockout mode; determines whether or not IP address is used when counting failed attempts.
-
setMode
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
- Returns:
- the maximum number of unsuccessful attempts.
-
setMaxAttempts
Sets the maximum number of unsuccessful attempts.- Parameters:
maxAttempts
- the maximum number of unsuccessful attempts.
-