Package africa.absa.inception.security
Class PasswordReset
java.lang.Object
africa.absa.inception.security.PasswordReset
- All Implemented Interfaces:
Serializable
The PasswordReset class holds the information for a password rest.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new PasswordReset.PasswordReset(String username, String securityCodeHash) Constructs a new PasswordReset. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the date and time the password reset was completed.Returns the date and time the password reset expired.Returns the date and time the password reset was requested.Returns the security code hash.Returns the status of the password reset.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.
-
Constructor Details
-
PasswordReset
public PasswordReset()Constructs a new PasswordReset. -
PasswordReset
Constructs a new PasswordReset.- Parameters:
username- the username for the user associated with the password resetsecurityCodeHash- the security code hash
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCompleted
Returns the date and time the password reset was completed.- Returns:
- the date and time the password reset was completed
-
getExpired
Returns the date and time the password reset expired.- Returns:
- the date and time the password reset expired
-
getRequested
Returns the date and time the password reset was requested.- Returns:
- the date and time the password reset was requested
-
getSecurityCodeHash
Returns the security code hash.- Returns:
- the security code hash
-
getStatus
Returns the status of the password reset.- Returns:
- the status of the password reset
-
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
Set the date and time the password reset was completed.- Parameters:
completed- the date and time the password reset was completed
-
setExpired
Set the date and time the password reset expired.- Parameters:
expired- the date and time the password reset expired
-
setRequested
Set the date and time the password reset was requested.- Parameters:
requested- the date and time the password reset was requested
-
setSecurityCodeHash
Set the security code hash.- Parameters:
securityCodeHash- the security code hash
-
setStatus
Set the status of the password reset.- Parameters:
status- the status of the password reset
-
setUsername
Set the username for the user associated with the password reset.- Parameters:
username- the username for the user associated with the password reset
-