Class UserChangePasswordAttempt

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

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

    • UserChangePasswordAttempt

      public UserChangePasswordAttempt()
  • Method Details

    • getId

      public String getId()
      The database id.
    • getUsername

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

      @NonNull public String getUserId()
      The user id of the attempted password change.

      This should be non-null since a user can only change a password once they are logged in.

    • getAuthServerId

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

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

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

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

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

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

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

      This should be non-null since a user can only change a password once they are logged in.

    • setAuthServerId

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

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

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

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