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 aSuccessfulLoginInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultAction
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of thefailedLogins
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastFailedLogin
record component.Returns the value of thelastSuccessfulLogin
record component.boolean
Returns the value of themultiFactorLoginEnabled
record component.final String
toString()
Returns a string representation of this record class.username()
Returns the value of theusername
record component.
-
Constructor Details
-
SuccessfulLoginInfo
public SuccessfulLoginInfo(long failedLogins, String username, Date lastSuccessfulLogin, Date lastFailedLogin, boolean multiFactorLoginEnabled, String defaultAction) Creates an instance of aSuccessfulLoginInfo
record class.- Parameters:
failedLogins
- the value for thefailedLogins
record componentusername
- the value for theusername
record componentlastSuccessfulLogin
- the value for thelastSuccessfulLogin
record componentlastFailedLogin
- the value for thelastFailedLogin
record componentmultiFactorLoginEnabled
- the value for themultiFactorLoginEnabled
record componentdefaultAction
- the value for thedefaultAction
record 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 thefailedLogins
record component.- Returns:
- the value of the
failedLogins
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
lastSuccessfulLogin
Returns the value of thelastSuccessfulLogin
record component.- Returns:
- the value of the
lastSuccessfulLogin
record component
-
lastFailedLogin
Returns the value of thelastFailedLogin
record component.- Returns:
- the value of the
lastFailedLogin
record component
-
multiFactorLoginEnabled
public boolean multiFactorLoginEnabled()Returns the value of themultiFactorLoginEnabled
record component.- Returns:
- the value of the
multiFactorLoginEnabled
record component
-
defaultAction
Returns the value of thedefaultAction
record component.- Returns:
- the value of the
defaultAction
record component
-