Record Class CredentialVerificationFailed
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.CredentialVerificationFailed
- Record Components:
timestamp- UTC creation timeusername- username supplied by the attempt (may be a sentinel for unknown-user paths so log search still works)clientAddress- remote client address, ornullinternalAuditEventType- the differentiated failure classification
- All Implemented Interfaces:
AuditEvent
public record CredentialVerificationFailed(Instant timestamp, String username, String clientAddress, InternalAuditEventType internalAuditEventType)
extends Record
implements AuditEvent
Failed password verification, carrying the internal differentiated
classification so audit sinks can distinguish unknown user from
wrong password, broken envelope, missing provider or rejected pepper
key.
The internalAuditEventType stays strictly inside audit
sinks; the perimeter still sees the generic
INVALID_CREDENTIALS response (CWE-203 / CWE-209).
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialVerificationFailed(Instant timestamp, String username, String clientAddress, InternalAuditEventType internalAuditEventType) Creates an instance of aCredentialVerificationFailedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the value of theinternalAuditEventTyperecord 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
-
CredentialVerificationFailed
public CredentialVerificationFailed(Instant timestamp, String username, String clientAddress, InternalAuditEventType internalAuditEventType) Creates an instance of aCredentialVerificationFailedrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentusername- the value for theusernamerecord componentclientAddress- the value for theclientAddressrecord componentinternalAuditEventType- the value for theinternalAuditEventTyperecord 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). -
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
-
internalAuditEventType
Returns the value of theinternalAuditEventTyperecord component.- Returns:
- the value of the
internalAuditEventTyperecord component
-