Package africa.absa.inception.security
Class PasswordReset
- java.lang.Object
-
- africa.absa.inception.security.PasswordReset
-
- All Implemented Interfaces:
Serializable
@Entity public class PasswordReset extends Object implements Serializable
The PasswordReset class holds the information for a password rest.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PasswordReset()Constructs a new PasswordReset.PasswordReset(String username, String securityCodeHash)Constructs a new PasswordReset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.LocalDateTimegetCompleted()Returns the date and time the password reset was completed.LocalDateTimegetExpired()Returns the date and time the password reset expired.LocalDateTimegetRequested()Returns the date and time the password reset was requested.StringgetSecurityCodeHash()Returns the security code hash.PasswordResetStatusgetStatus()Returns the status of the password reset.StringgetUsername()Returns the username for the user associated with the password reset.inthashCode()Returns a hash code value for the object.voidsetCompleted(LocalDateTime completed)Set the date and time the password reset was completed.voidsetExpired(LocalDateTime expired)Set the date and time the password reset expired.voidsetRequested(LocalDateTime requested)Set the date and time the password reset was requested.voidsetSecurityCodeHash(String securityCodeHash)Set the security code hash.voidsetStatus(PasswordResetStatus status)Set the status of the password reset.voidsetUsername(String username)Set the username for the user associated with the password reset.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCompleted
public LocalDateTime getCompleted()
Returns the date and time the password reset was completed.- Returns:
- the date and time the password reset was completed
-
getExpired
public LocalDateTime getExpired()
Returns the date and time the password reset expired.- Returns:
- the date and time the password reset expired
-
getRequested
public LocalDateTime getRequested()
Returns the date and time the password reset was requested.- Returns:
- the date and time the password reset was requested
-
getSecurityCodeHash
public String getSecurityCodeHash()
Returns the security code hash.- Returns:
- the security code hash
-
getStatus
public PasswordResetStatus getStatus()
Returns the status of the password reset.- Returns:
- the status of the password reset
-
getUsername
public String getUsername()
Returns the username for the user associated with the password reset.- Returns:
- the username for the user associated with the password reset
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setCompleted
public void setCompleted(LocalDateTime completed)
Set the date and time the password reset was completed.- Parameters:
completed- the date and time the password reset was completed
-
setExpired
public void setExpired(LocalDateTime expired)
Set the date and time the password reset expired.- Parameters:
expired- the date and time the password reset expired
-
setRequested
public void setRequested(LocalDateTime requested)
Set the date and time the password reset was requested.- Parameters:
requested- the date and time the password reset was requested
-
setSecurityCodeHash
public void setSecurityCodeHash(String securityCodeHash)
Set the security code hash.- Parameters:
securityCodeHash- the security code hash
-
setStatus
public void setStatus(PasswordResetStatus status)
Set the status of the password reset.- Parameters:
status- the status of the password reset
-
setUsername
public void setUsername(String username)
Set the username for the user associated with the password reset.- Parameters:
username- the username for the user associated with the password reset
-
-