Record Class CredentialMetricEvent.VerifyDuration
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.metrics.CredentialMetricEvent.VerifyDuration
- Record Components:
algorithm- algorithm of the stored envelopeproviderId- provider id of the stored envelopepolicyVersion- policy version recorded in the envelopedurationMicros- wall-clock duration in microsecondsverified- whether the verification succeededdummyPath- whether the dummy KDF ran instead of a real verification (unknown user / malformed envelope / missing provider / unknown pepper key)
- All Implemented Interfaces:
CredentialMetricEvent
- Enclosing interface:
CredentialMetricEvent
public static record CredentialMetricEvent.VerifyDuration(String algorithm, String providerId, int policyVersion, long durationMicros, boolean verified, boolean dummyPath)
extends Record
implements CredentialMetricEvent
One
PasswordHashingService.verify call completed.-
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
ConstructorsConstructorDescriptionVerifyDuration(String algorithm, String providerId, int policyVersion, long durationMicros, boolean verified, boolean dummyPath) Creates an instance of aVerifyDurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.booleanReturns the value of thedummyPathrecord component.longReturns the value of thedurationMicrosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepolicyVersionrecord component.Returns the value of theproviderIdrecord component.final StringtoString()Returns a string representation of this record class.booleanverified()Returns the value of theverifiedrecord component.
-
Constructor Details
-
VerifyDuration
public VerifyDuration(String algorithm, String providerId, int policyVersion, long durationMicros, boolean verified, boolean dummyPath) Creates an instance of aVerifyDurationrecord class.- Parameters:
algorithm- the value for thealgorithmrecord componentproviderId- the value for theproviderIdrecord componentpolicyVersion- the value for thepolicyVersionrecord componentdurationMicros- the value for thedurationMicrosrecord componentverified- the value for theverifiedrecord componentdummyPath- the value for thedummyPathrecord 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. -
algorithm
-
providerId
Returns the value of theproviderIdrecord component.- Returns:
- the value of the
providerIdrecord component
-
policyVersion
public int policyVersion()Returns the value of thepolicyVersionrecord component.- Returns:
- the value of the
policyVersionrecord component
-
durationMicros
public long durationMicros()Returns the value of thedurationMicrosrecord component.- Returns:
- the value of the
durationMicrosrecord component
-
verified
-
dummyPath
-