Class UserLoginAttempt
java.lang.Object
com.broadleafcommerce.auth.user.domain.UserLoginAttempt
Represents a login attempt by a user
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The time that this login attempt occurred.TheAuthorizationServer
id that this login attempt was made from.getId()
The database id.The login attempt result.Theuser id
of the attempted login.The username used in the login attempt.int
hashCode()
boolean
Should this login attempt be considered when determining if the user is to be locked out?void
setAttemptTime
(Instant attemptTime) The time that this login attempt occurred.void
setAuthServerId
(String authServerId) TheAuthorizationServer
id that this login attempt was made from.void
setConsidered
(boolean considered) Should this login attempt be considered when determining if the user is to be locked out?void
The database id.void
setLoginAttemptResult
(String loginAttemptResult) The login attempt result.void
Theuser id
of the attempted login.void
setUsername
(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 id
of 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
TheAuthorizationServer
id 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 id
of 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
TheAuthorizationServer
id 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
-