Record Class RestUserLockoutManager.Lockout
java.lang.Object
java.lang.Record
com.loomcache.springboot.security.RestUserLockoutManager.Lockout
- Enclosing class:
RestUserLockoutManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconsecutiveFailuresrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlocked()@Nullable InstantReturns the value of thelockedUntilrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Lockout
Creates an instance of aLockoutrecord class.- Parameters:
username- the value for theusernamerecord componentconsecutiveFailures- the value for theconsecutiveFailuresrecord componentlockedUntil- the value for thelockedUntilrecord component
-
-
Method Details
-
locked
public boolean locked() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
consecutiveFailures
public int consecutiveFailures()Returns the value of theconsecutiveFailuresrecord component.- Returns:
- the value of the
consecutiveFailuresrecord component
-
lockedUntil
Returns the value of thelockedUntilrecord component.- Returns:
- the value of the
lockedUntilrecord component
-