Record Class LoginSucceeded
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.LoginSucceeded
- Record Components:
timestamp- UTC creation time, nevernullusername- authenticated username, nevernullclientAddress- remote client address, ornullif unknownsessionId- session identifier opened for the subject, ornullif no session abstraction applies
- All Implemented Interfaces:
AuditEvent
-
Constructor Summary
ConstructorsConstructorDescriptionLoginSucceeded(Instant timestamp, String username, String clientAddress, String sessionId) Creates an instance of aLoginSucceededrecord 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 thesessionIdrecord 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
-
LoginSucceeded
Creates an instance of aLoginSucceededrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentusername- the value for theusernamerecord componentclientAddress- the value for theclientAddressrecord componentsessionId- the value for thesessionIdrecord 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
-
sessionId
-