Package africa.absa.inception.security
Class PasswordChange
java.lang.Object
africa.absa.inception.security.PasswordChange
- All Implemented Interfaces:
Serializable
The PasswordChange class holds the information for a password change.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new PasswordChange.PasswordChange(String newPassword, Boolean expirePassword, Boolean lockUser, Boolean resetPasswordHistory) Constructs a new PasswordChange for an ADMINISTRATIVE password change.PasswordChange(String newPassword, String password) Constructs a new PasswordChange for a USER password change. -
Method Summary
Modifier and TypeMethodDescriptionReturns whether the user's password should be expired when performing an administrative password change.Returns whether the user should be locked when performing an administrative password change.Returns the new password.Returns the password for the user that is used to authorise the operation when performing a user password change.Returns the reason for changing the password.Returns whether the user's password history should be reset when performing an administrative password change.Returns the security code when performing a forgotten password change.voidsetExpirePassword(Boolean expirePassword) Set whether the user's password should be expired when performing an administrative password change.voidsetLockUser(Boolean lockUser) Set whether the user should be locked when performing an administrative password change.voidsetNewPassword(String newPassword) Set the new password when performing a user password change.voidsetPassword(String password) Set the password for the user that is used to authorise the operation when performing a user password change.voidsetReason(PasswordChangeReason reason) Set the reason for changing the password.voidsetResetPasswordHistory(Boolean resetPasswordHistory) Set whether the user's password history should be reset when performing an administrative password change.voidsetSecurityCode(String securityCode) Set the security code when performing a forgotten password change.
-
Constructor Details
-
PasswordChange
public PasswordChange()Constructs a new PasswordChange. -
PasswordChange
Constructs a new PasswordChange for a USER password change.- Parameters:
newPassword- the new passwordpassword- the password for the user that is used to authorise the operation when performing a user password change
-
PasswordChange
public PasswordChange(String newPassword, Boolean expirePassword, Boolean lockUser, Boolean resetPasswordHistory) Constructs a new PasswordChange for an ADMINISTRATIVE password change.- Parameters:
newPassword- the new passwordexpirePassword- expire the user's password when performing the administrative password changelockUser- lock the user when performing the administrative password changeresetPasswordHistory- reset the user's password history when performing the administrative password change
-
-
Method Details
-
getExpirePassword
Returns whether the user's password should be expired when performing an administrative password change.- Returns:
- true if the user's password should be expired when performing an administrative password changeor false otherwise
-
getLockUser
Returns whether the user should be locked when performing an administrative password change.- Returns:
- true if the user should be locked when performing an administrative password change or false otherwise
-
getNewPassword
Returns the new password.- Returns:
- the new password
-
getPassword
Returns the password for the user that is used to authorise the operation when performing a user password change.- Returns:
- the password for the user that is used to authorise the operation when performing a user password change
-
getReason
Returns the reason for changing the password.- Returns:
- the reason for changing the password
-
getResetPasswordHistory
Returns whether the user's password history should be reset when performing an administrative password change.- Returns:
- true if the user's password history should be reset when performing an administrative password changeor false otherwise
-
getSecurityCode
Returns the security code when performing a forgotten password change.- Returns:
- the security code when performing a forgotten password change
-
setExpirePassword
Set whether the user's password should be expired when performing an administrative password change.- Parameters:
expirePassword- expire the user's password when performing an administrative password change
-
setLockUser
Set whether the user should be locked when performing an administrative password change.- Parameters:
lockUser- lock the user when performing an administrative password change
-
setNewPassword
Set the new password when performing a user password change.- Parameters:
newPassword- the new password when performing a new password change
-
setPassword
Set the password for the user that is used to authorise the operation when performing a user password change.- Parameters:
password- the password for the user that is used to authorise the operation when performing a user password change
-
setReason
Set the reason for changing the password.- Parameters:
reason- the reason for changing the password
-
setResetPasswordHistory
Set whether the user's password history should be reset when performing an administrative password change.- Parameters:
resetPasswordHistory- reset the user's password history when performing an administrative password change
-
setSecurityCode
Set the security code when performing a forgotten password change.- Parameters:
securityCode- the security code when performing a forgotten password change
-