Package org.bremersee.dccon.model
Class Password
- java.lang.Object
-
- org.bremersee.dccon.model.Password
-
- All Implemented Interfaces:
Serializable
@Validated public class Password extends Object implements Serializable
Request body to change a password. Administrators can just set the new password. Normal users must also set the previous password.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPreviousValue()
Gets previous password.@NotNull String
getValue()
The new password.void
setPreviousValue(String previousValue)
Sets previous password.void
setValue(String value)
Sets new password.
-
-
-
Constructor Detail
-
Password
public Password(String value)
Instantiates a new password request body.- Parameters:
value
- the new password
-
-
Method Detail
-
getValue
@NotNull public @NotNull String getValue()
The new password.- Returns:
- the new password
-
setValue
public void setValue(String value)
Sets new password.- Parameters:
value
- the new password
-
getPreviousValue
public String getPreviousValue()
Gets previous password.- Returns:
- the previous password
-
setPreviousValue
public void setPreviousValue(String previousValue)
Sets previous password.- Parameters:
previousValue
- the previous password
-
-