Record Class StandaloneLoginFlow.LoginResult.LockedOut<U>
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.standalone.StandaloneLoginFlow.LoginResult.LockedOut<U>
- All Implemented Interfaces:
StandaloneLoginFlow.LoginResult<U>
- Enclosing interface:
StandaloneLoginFlow.LoginResult<U>
public static record StandaloneLoginFlow.LoginResult.LockedOut<U>(com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision)
extends Record
implements StandaloneLoginFlow.LoginResult<U>
The username is currently locked out. The caller should not retry yet.
-
Nested Class Summary
Nested classes/interfaces inherited from interface StandaloneLoginFlow.LoginResult
StandaloneLoginFlow.LoginResult.LockedOut<U>, StandaloneLoginFlow.LoginResult.Rejected<U>, StandaloneLoginFlow.LoginResult.Success<U>Modifier and TypeInterfaceDescriptionstatic final recordThe username is currently locked out.static final recordCredentials were invalid (wrong password, unknown user, etc.).static final recordCredentials were valid and a subject was bound into the store. -
Constructor Summary
ConstructorsConstructorDescriptionLockedOut(com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision) Creates an instance of aLockedOutrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOutdecision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LockedOut
public LockedOut(com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision) Creates an instance of aLockedOutrecord class.- Parameters:
decision- the value for thedecisionrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
decision
public com.svenruppert.jsentinel.bruteforce.LoginAttemptDecision.LockedOut decision()Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-