@Generated(value="org.immutables.processor.ProxyProcessor") public final class LockoutPolicy extends Object
InternalConfiguration| Modifier and Type | Class and Description |
|---|---|
static class |
LockoutPolicy.Builder
Builds instances of type
LockoutPolicy. |
| Modifier and Type | Method and Description |
|---|---|
static LockoutPolicy.Builder |
builder()
Creates a builder for
LockoutPolicy. |
boolean |
equals(Object another)
This instance is equal to all instances of
LockoutPolicy that have equal attribute values. |
Integer |
getLockAccountPeriodInSecond()
Number of seconds to lock out an account when lockoutAfterFailures failures is exceeded (defaults to 300).
|
Integer |
getLockoutPeriodInSecond()
Number of seconds in which lockoutAfterFailures failures must occur in order for account to be locked (defaults to 3600).
|
Integer |
getNumberOfAllowedFailures()
Number of allowed failures before account is locked (defaults to 5).
|
int |
hashCode()
Computes a hash code from attributes:
lockAccountPeriodInSecond, lockoutPeriodInSecond, numberOfAllowedFailures. |
String |
toString()
Prints the immutable value
LockoutPolicy with attribute values. |
public Integer getLockAccountPeriodInSecond()
public Integer getLockoutPeriodInSecond()
public Integer getNumberOfAllowedFailures()
public boolean equals(Object another)
LockoutPolicy that have equal attribute values.public int hashCode()
lockAccountPeriodInSecond, lockoutPeriodInSecond, numberOfAllowedFailures.public String toString()
LockoutPolicy with attribute values.public static LockoutPolicy.Builder builder()
LockoutPolicy.
LockoutPolicy.builder()
.lockAccountPeriodInSecond(Integer) // required lockAccountPeriodInSecond
.lockoutPeriodInSecond(Integer) // required lockoutPeriodInSecond
.numberOfAllowedFailures(Integer) // required numberOfAllowedFailures
.build();
Copyright © 2020. All rights reserved.