Class UserLoginAttempt
- java.lang.Object
-
- com.broadleafcommerce.auth.user.domain.UserLoginAttempt
-
public class UserLoginAttempt extends Object
Represents a login attempt by a user
-
-
Constructor Summary
Constructors Constructor Description UserLoginAttempt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Instant
getAttemptTime()
The time that this login attempt occurred.String
getAuthServerId()
TheAuthorizationServer
id that this login attempt was made from.String
getId()
The database id.String
getLoginAttemptResult()
The login attempt result.String
getUserId()
Theuser id
of the attempted login.String
getUsername()
The username used in the login attempt.int
hashCode()
boolean
isConsidered()
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
setId(String id)
The database id.void
setLoginAttemptResult(String loginAttemptResult)
The login attempt result.void
setUserId(String userId)
Theuser id
of the attempted login.void
setUsername(String username)
The username used in the login attempt.String
toString()
-
-
-
Method Detail
-
getId
public String getId()
The database id.
-
getUsername
@NonNull public String getUsername()
The username used in the login attempt. Required.
-
getUserId
@Nullable public String 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
public String getAuthServerId()
TheAuthorizationServer
id that this login attempt was made from.
-
getLoginAttemptResult
public String 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
public Instant getAttemptTime()
The time that this login attempt occurred.
-
setId
public void setId(String id)
The database id.
-
setUsername
public void setUsername(@NonNull String username)
The username used in the login attempt. Required.
-
setUserId
public void setUserId(@Nullable String userId)
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
public void setAuthServerId(String authServerId)
TheAuthorizationServer
id that this login attempt was made from.
-
setLoginAttemptResult
public void setLoginAttemptResult(String loginAttemptResult)
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
public void setAttemptTime(Instant attemptTime)
The time that this login attempt occurred.
-
canEqual
protected boolean canEqual(Object other)
-
-