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 booleancanEqual(Object other)booleanequals(Object o)InstantgetAttemptTime()The time that this login attempt occurred.StringgetAuthServerId()TheAuthorizationServerid that this login attempt was made from.StringgetId()The database id.StringgetLoginAttemptResult()The login attempt result.StringgetUserId()Theuser idof the attempted login.StringgetUsername()The username used in the login attempt.inthashCode()booleanisConsidered()Should 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?voidsetId(String id)The database id.voidsetLoginAttemptResult(String loginAttemptResult)The login attempt result.voidsetUserId(String userId)Theuser idof the attempted login.voidsetUsername(String username)The username used in the login attempt.StringtoString()
-
-
-
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 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
public String getAuthServerId()
TheAuthorizationServerid 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 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
public void setAuthServerId(String authServerId)
TheAuthorizationServerid 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)
-
-