Class UserLoginAttempt
java.lang.Object
com.broadleafcommerce.auth.user.domain.UserLoginAttempt
Represents a login attempt by a user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe time that this login attempt occurred.TheAuthorizationServerid that this login attempt was made from.getId()The database id.The login attempt result.Theuser idof the attempted login.The username used in the login attempt.inthashCode()booleanShould this login attempt be considered when determining if the user is to be locked out?voidsetAttemptTime(Instant attemptTime) The time that this login attempt occurred.voidsetAuthServerId(String authServerId) TheAuthorizationServerid that this login attempt was made from.voidsetConsidered(boolean considered) Should this login attempt be considered when determining if the user is to be locked out?voidThe database id.voidsetLoginAttemptResult(String loginAttemptResult) The login attempt result.voidTheuser idof the attempted login.voidsetUsername(String username) The username used in the login attempt.toString()
-
Constructor Details
-
UserLoginAttempt
public UserLoginAttempt()
-
-
Method Details
-
getId
The database id. -
getUsername
The username used in the login attempt. Required. -
getUserId
Theuser idof the attempted login.This is nullable, as an attempt could be made to login with a specific username, but no user exists for that username.
-
getAuthServerId
TheAuthorizationServerid that this login attempt was made from. -
getLoginAttemptResult
The login attempt result. Either SUCCESS or FAILURE. SeeLoginAttemptResult -
isConsidered
public boolean isConsidered()Should this login attempt be considered when determining if the user is to be locked out? -
getAttemptTime
The time that this login attempt occurred. -
setId
The database id. -
setUsername
The username used in the login attempt. Required. -
setUserId
Theuser idof the attempted login.This is nullable, as an attempt could be made to login with a specific username, but no user exists for that username.
-
setAuthServerId
TheAuthorizationServerid that this login attempt was made from. -
setLoginAttemptResult
The login attempt result. Either SUCCESS or FAILURE. SeeLoginAttemptResult -
setConsidered
public void setConsidered(boolean considered) Should this login attempt be considered when determining if the user is to be locked out? -
setAttemptTime
The time that this login attempt occurred. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-