Package com.axelor.auth
Record Class UserAuthenticationEvent
java.lang.Object
java.lang.Record
com.axelor.auth.UserAuthenticationEvent
- Record Components:
message- sentence describing how the user authenticatedstatus- authentication status name (e.g."SUCCESS")authDate- epoch milliseconds of the authentication, or0if unavailabledevice- device and network information associated with this authentication
public record UserAuthenticationEvent(String message, String status, long authDate, UserSession.Device device)
extends Record
Represents an authentication event of a user, for display.
-
Constructor Summary
ConstructorsConstructorDescriptionUserAuthenticationEvent(String message, String status, long authDate, UserSession.Device device) Creates an instance of aUserAuthenticationEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongauthDate()Returns the value of theauthDaterecord component.device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserAuthenticationEvent
public UserAuthenticationEvent(String message, String status, long authDate, UserSession.Device device) Creates an instance of aUserAuthenticationEventrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
authDate
public long authDate()Returns the value of theauthDaterecord component.- Returns:
- the value of the
authDaterecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-