Package com.dzidzi.dto.credential
Class CreateNewPasswordRequest
java.lang.Object
com.dzidzi.dto.credential.CreateNewPasswordRequest
CreateNewPasswordRequest represents the DTO request containing the objects used to complete an account with
UserRole.SERVICE, UserRole.COURIER,
UserRole.RESTAURANT_ADMIN and UserRole.ADMIN.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The new password to use.The same password typed in newPassThe new username to use for your accountvoidsetNewPass(String newPass) The new password to use.voidsetRepeatPass(String repeatPass) The same password typed in newPassvoidsetUsername(String username) The new username to use for your account
-
Method Details
-
builder
-
getNewPass
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
getRepeatPass
The same password typed in newPass -
getUsername
The new username to use for your account -
setNewPass
The new password to use. Password should contain lowercase, uppercase, number, special character and at least 12 characters. -
setRepeatPass
The same password typed in newPass -
setUsername
The new username to use for your account
-