Package com.dzidzi.dto.credential
Class ChangePasswordRequest
java.lang.Object
com.dzidzi.dto.credential.ChangePasswordRequest
ChangePasswordRequest represents the DTO request containing the objects used to update an existing user password or username.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe new password to use.The existing passwordThe new username of the uservoidsetNewPass(String newPass) The new password to use.voidsetOldPass(String oldPass) The existing passwordvoidsetUsername(String username) The new username of the user
-
Constructor Details
-
ChangePasswordRequest
public ChangePasswordRequest()
-
-
Method Details
-
getOldPass
The existing password -
getNewPass
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getUsername
The new username of the user -
setOldPass
The existing password -
setNewPass
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
setUsername
The new username of the user
-