Record Class LoginAttemptService.LoginAttempt
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.core.security.LoginAttemptService.LoginAttempt
- Enclosing interface:
- LoginAttemptService
-
Constructor Summary
ConstructorsConstructorDescriptionLoginAttempt(Instant attemptTime, boolean successful, String attemptIp, String userAgent) Creates an instance of aLoginAttemptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattemptIprecord component.Returns the value of theattemptTimerecord component.final booleanIndicates whether some other object is "equal to" this one.(package private) static LoginAttemptService.LoginAttemptfailedAttempt(Instant attemptTime, String attemptIp, String userAgent) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesuccessfulrecord component.(package private) static LoginAttemptService.LoginAttemptsuccessfulAttempt(Instant attemptTime, String attemptIp, String userAgent) final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.
-
Constructor Details
-
LoginAttempt
Creates an instance of aLoginAttemptrecord class.- Parameters:
attemptTime- the value for theattemptTimerecord componentsuccessful- the value for thesuccessfulrecord componentattemptIp- the value for theattemptIprecord componentuserAgent- the value for theuserAgentrecord component
-
-
Method Details
-
successfulAttempt
static LoginAttemptService.LoginAttempt successfulAttempt(Instant attemptTime, String attemptIp, String userAgent) -
failedAttempt
static LoginAttemptService.LoginAttempt failedAttempt(Instant attemptTime, String attemptIp, String userAgent) -
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 '=='. -
attemptTime
Returns the value of theattemptTimerecord component.- Returns:
- the value of the
attemptTimerecord component
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
attemptIp
Returns the value of theattemptIprecord component.- Returns:
- the value of the
attemptIprecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-