Class UserResetPasswordAttempt

java.lang.Object
com.broadleafcommerce.auth.user.domain.UserResetPasswordAttempt
All Implemented Interfaces:
Serializable

public class UserResetPasswordAttempt extends Object implements Serializable
Represents a reset password attempt by a user.
Since:
2.1.3
Author:
Julia Lopez-Pozas (jpozas)
See Also:
  • Constructor Details

    • UserResetPasswordAttempt

      public UserResetPasswordAttempt()
  • Method Details

    • getId

      public String getId()
      The database id.
    • getUsername

      @NonNull public String getUsername()
      The username used in the password reset attempt. Required.
    • getUserId

      @Nullable public String getUserId()
      The user id of the attempted password reset.

      This is nullable, as an attempt could be made to reset the password using a specific username, but no user exists for that username.

    • getAuthServerId

      public String getAuthServerId()
      The AuthorizationServer id that this password reset attempt was made from.
    • getResult

      public String getResult()
      The reset password attempt result. Either SUCCESS or FAILURE.
      See Also:
    • isConsidered

      public boolean isConsidered()
      Should this password reset attempt be considered when determining if the user is to be locked out?
    • getAttemptTime

      public Instant getAttemptTime()
      The time that this password reset attempt occurred.
    • setId

      public void setId(String id)
      The database id.
    • setUsername

      public void setUsername(@NonNull String username)
      The username used in the password reset attempt. Required.
    • setUserId

      public void setUserId(@Nullable String userId)
      The user id of the attempted password reset.

      This is nullable, as an attempt could be made to reset the password using a specific username, but no user exists for that username.

    • setAuthServerId

      public void setAuthServerId(String authServerId)
      The AuthorizationServer id that this password reset attempt was made from.
    • setResult

      public void setResult(String result)
      The reset password attempt result. Either SUCCESS or FAILURE.
      See Also:
    • setConsidered

      public void setConsidered(boolean considered)
      Should this password reset attempt be considered when determining if the user is to be locked out?
    • setAttemptTime

      public void setAttemptTime(Instant attemptTime)
      The time that this password reset 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