Class BruteForceConfiguration
java.lang.Object
com.auth0.json.mgmt.attackprotection.BruteForceConfiguration
Represents the Brute Force Configuration
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()voidsetAllowList(List<String> allowList) Sets the list of trusted IP addresses that will not have attack protection enforced against them.voidsetEnabled(Boolean enabled) Sets whether or not brute force protections are active.voidsetMaxAttempts(Integer maxAttempts) Sets the maximum number of unsuccessful attempts.voidSets the account lockout mode; determines whether or not IP address is used when counting failed attempts.voidsetShields(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.
-