Record Class CredentialMetricEvent.LifecycleTransition
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.metrics.CredentialMetricEvent.LifecycleTransition
- Record Components:
fromStatus- prior statustoStatus- new status
- All Implemented Interfaces:
CredentialMetricEvent
- Enclosing interface:
CredentialMetricEvent
public static record CredentialMetricEvent.LifecycleTransition(CredentialStatus fromStatus, CredentialStatus toStatus)
extends Record
implements CredentialMetricEvent
A credential moved between lifecycle states.
-
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
ConstructorsConstructorDescriptionLifecycleTransition(CredentialStatus fromStatus, CredentialStatus toStatus) Creates an instance of aLifecycleTransitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromStatusrecord component.final inthashCode()Returns a hash code value for this object.toStatus()Returns the value of thetoStatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LifecycleTransition
Creates an instance of aLifecycleTransitionrecord class.- Parameters:
fromStatus- the value for thefromStatusrecord componenttoStatus- the value for thetoStatusrecord 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). -
fromStatus
Returns the value of thefromStatusrecord component.- Returns:
- the value of the
fromStatusrecord component
-
toStatus
-