Record Class LoginFailed
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.LoginFailed
- Record Components:
timestamp- UTC creation time, nevernullusername- username supplied by the attempt, nevernullclientAddress- remote client address, ornullif unknownreason- short reason key (e.g."Credentials rejected","Unknown user"), ornull
- All Implemented Interfaces:
AuditEvent
-
Constructor Summary
ConstructorsConstructorDescriptionLoginFailed(Instant timestamp, String username, String clientAddress, String reason) Creates an instance of aLoginFailedrecord 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.reason()Returns the value of thereasonrecord 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
-
LoginFailed
Creates an instance of aLoginFailedrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentusername- the value for theusernamerecord componentclientAddress- the value for theclientAddressrecord componentreason- the value for thereasonrecord 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
-
reason
-