Record Class CredentialMetricEvent.AbuseSignal
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.metrics.CredentialMetricEvent.AbuseSignal
- All Implemented Interfaces:
CredentialMetricEvent
- Enclosing interface:
CredentialMetricEvent
public static record CredentialMetricEvent.AbuseSignal(AbusePattern pattern, int distinctTargets, int attempts)
extends Record
implements CredentialMetricEvent
Abuse pattern detector fired. Carries the aggregate
(distinctTargets, attempts) — never the targets themselves.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CredentialMetricEvent
CredentialMetricEvent.AbuseSignal, CredentialMetricEvent.HashDuration, CredentialMetricEvent.KdfLimiterRejection, CredentialMetricEvent.LifecycleTransition, CredentialMetricEvent.RehashRequested, CredentialMetricEvent.VerifyDurationModifier and TypeInterfaceDescriptionstatic final recordAbuse pattern detector fired.static final recordOnePasswordHashingService.hashcall completed.static final recordThe KDF execution limiter shed an inbound verification.static final recordA credential moved between lifecycle states.static final recordA successful verification triggered a transparent rehash.static final recordOnePasswordHashingService.verifycall completed. -
Constructor Summary
ConstructorsConstructorDescriptionAbuseSignal(AbusePattern pattern, int distinctTargets, int attempts) Creates an instance of aAbuseSignalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.intReturns the value of thedistinctTargetsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AbuseSignal
Creates an instance of aAbuseSignalrecord class.- Parameters:
pattern- the value for thepatternrecord componentdistinctTargets- the value for thedistinctTargetsrecord componentattempts- the value for theattemptsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
distinctTargets
public int distinctTargets()Returns the value of thedistinctTargetsrecord component.- Returns:
- the value of the
distinctTargetsrecord component
-
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-