Class UpdatePasswordBean

java.lang.Object
ch.tocco.nice2.rest.core.spi.beans.HalBean
ch.tocco.nice2.rest.principal.impl.beans.UpdatePasswordBean
All Implemented Interfaces:
Serializable

public class UpdatePasswordBean extends HalBean
Request body of POST requests. Contains the new and the old password, used for validating and updating the password. The ReCaptcha token is necessary for updating the password (but not for validation). The old password may be null for usermanagers. The captcha token many be null for usermanagers that are changing the password of another user.
See Also:
  • Constructor Details

    • UpdatePasswordBean

      public UpdatePasswordBean()
  • Method Details

    • getOldPassword

      @Nullable public @Nullable String getOldPassword()
    • setOldPassword

      public void setOldPassword(@Nullable @Nullable String oldPassword)
    • getNewPassword

      public String getNewPassword()
    • setNewPassword

      public void setNewPassword(String newPassword)
    • getCaptchaToken

      @Nullable public @Nullable String getCaptchaToken()
    • setCaptchaToken

      public void setCaptchaToken(@Nullable @Nullable String captchaToken)