Record Class RestLoginController.SuccessfulLoginInfo
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.app.rest.RestLoginController.SuccessfulLoginInfo
- Enclosing class:
- RestLoginController
-
Constructor Summary
ConstructorsConstructorDescriptionSuccessfulLoginInfo(long failedLogins, String username, Date lastSuccessfulLogin, Date lastFailedLogin, boolean multiFactorLoginEnabled, String defaultAction) Creates an instance of aSuccessfulLoginInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultActionrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefailedLoginsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastFailedLoginrecord component.Returns the value of thelastSuccessfulLoginrecord component.booleanReturns the value of themultiFactorLoginEnabledrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
SuccessfulLoginInfo
public SuccessfulLoginInfo(long failedLogins, String username, Date lastSuccessfulLogin, Date lastFailedLogin, boolean multiFactorLoginEnabled, String defaultAction) Creates an instance of aSuccessfulLoginInforecord class.- Parameters:
failedLogins- the value for thefailedLoginsrecord componentusername- the value for theusernamerecord componentlastSuccessfulLogin- the value for thelastSuccessfulLoginrecord componentlastFailedLogin- the value for thelastFailedLoginrecord componentmultiFactorLoginEnabled- the value for themultiFactorLoginEnabledrecord componentdefaultAction- the value for thedefaultActionrecord component
-
-
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 '=='. -
failedLogins
public long failedLogins()Returns the value of thefailedLoginsrecord component.- Returns:
- the value of the
failedLoginsrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
lastSuccessfulLogin
Returns the value of thelastSuccessfulLoginrecord component.- Returns:
- the value of the
lastSuccessfulLoginrecord component
-
lastFailedLogin
Returns the value of thelastFailedLoginrecord component.- Returns:
- the value of the
lastFailedLoginrecord component
-
multiFactorLoginEnabled
public boolean multiFactorLoginEnabled()Returns the value of themultiFactorLoginEnabledrecord component.- Returns:
- the value of the
multiFactorLoginEnabledrecord component
-
defaultAction
Returns the value of thedefaultActionrecord component.- Returns:
- the value of the
defaultActionrecord component
-