Record Class AbuseDecision.Delay
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.abuse.AbuseDecision.Delay
- All Implemented Interfaces:
AbuseDecision
- Enclosing interface:
AbuseDecision
public static record AbuseDecision.Delay(Duration delay, AbuseDimension dimension)
extends Record
implements AbuseDecision
Honour the attempt but pause for
delay first — a soft
brake that slows automated scanners without locking the user
out.-
Nested Class Summary
Nested classes/interfaces inherited from interface AbuseDecision
AbuseDecision.Allow, AbuseDecision.Block, AbuseDecision.Delay, AbuseDecision.RequireAdditionalCheckModifier and TypeInterfaceDescriptionstatic final recordThe attempt may proceed unconditionally.static final recordRefuse the attempt.static final recordHonour the attempt but pause fordelayfirst — a soft brake that slows automated scanners without locking the user out.static final recordRequire step-up authentication / captcha / additional check before the attempt may proceed. -
Constructor Summary
ConstructorsConstructorDescriptionDelay(Duration delay, AbuseDimension dimension) Creates an instance of aDelayrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelay()Returns the value of thedelayrecord component.Returns the value of thedimensionrecord 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
-
Delay
Creates an instance of aDelayrecord class.- Parameters:
delay- the value for thedelayrecord componentdimension- the value for thedimensionrecord 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). -
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-