Class UserLoginAttempt

java.lang.Object
com.broadleafcommerce.auth.user.domain.UserLoginAttempt

public class UserLoginAttempt extends Object
Represents a login attempt by a user
  • Constructor Details

    • UserLoginAttempt

      public UserLoginAttempt()
  • Method Details

    • 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()
      The user 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()
      The AuthorizationServer id that this login attempt was made from.
    • getLoginAttemptResult

      public String getLoginAttemptResult()
      The login attempt result. Either SUCCESS or FAILURE. See LoginAttemptResult
    • 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)
      The user 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)
      The AuthorizationServer id that this login attempt was made from.
    • setLoginAttemptResult

      public void setLoginAttemptResult(String loginAttemptResult)
      The login attempt result. Either SUCCESS or FAILURE. See LoginAttemptResult
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object