Record Class CredentialVerificationSucceeded
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.CredentialVerificationSucceeded
- Record Components:
timestamp- UTC creation timeusername- username supplied by the attemptclientAddress- remote client address, ornullalgorithm- algorithm recorded in the verified envelopeproviderId- provider id recorded in the verified envelopepolicyVersion- policy version recorded in the verified envelopepepperKeyIdPresent-truewhen the verified envelope had a pepper key id; the value itself is never recordedrehashRequired- whether the rehash engine flagged this envelope for transparent upgrade
- All Implemented Interfaces:
AuditEvent
public record CredentialVerificationSucceeded(Instant timestamp, String username, String clientAddress, String algorithm, String providerId, int policyVersion, boolean pepperKeyIdPresent, boolean rehashRequired)
extends Record
implements AuditEvent
Successful password verification, recorded by the credential audit
publisher so audit sinks see the same outcome the
LoginAttemptPolicy recorded.
The event carries only metadata that an operator can publicly observe (algorithm, provider id, policy version, pepper presence). Salt, derived key material and the pepper key value itself never appear here (CWE-209 / CWE-522).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.Returns the value of theclientAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepepperKeyIdPresentrecord component.intReturns the value of thepolicyVersionrecord component.Returns the value of theproviderIdrecord component.booleanReturns the value of therehashRequiredrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
CredentialVerificationSucceeded
public CredentialVerificationSucceeded(Instant timestamp, String username, String clientAddress, String algorithm, String providerId, int policyVersion, boolean pepperKeyIdPresent, boolean rehashRequired) Creates an instance of aCredentialVerificationSucceededrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentusername- the value for theusernamerecord componentclientAddress- the value for theclientAddressrecord componentalgorithm- the value for thealgorithmrecord componentproviderId- the value for theproviderIdrecord componentpolicyVersion- the value for thepolicyVersionrecord componentpepperKeyIdPresent- the value for thepepperKeyIdPresentrecord componentrehashRequired- the value for therehashRequiredrecord 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. -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
username
-
clientAddress
Returns the value of theclientAddressrecord component.- Returns:
- the value of the
clientAddressrecord component
-
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
-
pepperKeyIdPresent
public boolean pepperKeyIdPresent()Returns the value of thepepperKeyIdPresentrecord component.- Returns:
- the value of the
pepperKeyIdPresentrecord component
-
rehashRequired
public boolean rehashRequired()Returns the value of therehashRequiredrecord component.- Returns:
- the value of the
rehashRequiredrecord component
-