Class 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
    • Constructor Detail

      • Password

        public Password​(String value)
        Instantiates a new password request body.
        Parameters:
        value - the new password
      • Password

        public Password​(String value,
                        String previousValue)
        Instantiates a new password request body.
        Parameters:
        value - the new password
        previousValue - the previous 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