Class CmsPasswordInfo

java.lang.Object
org.opencms.security.CmsPasswordInfo

public class CmsPasswordInfo extends Object
Validating bean for changing the password.

Since:
6.0.0
  • Constructor Details

    • CmsPasswordInfo

      public CmsPasswordInfo()
      Default Constructor.

    • CmsPasswordInfo

      Use this Constructor if you need to check the old password of the current logged in user.

      Parameters:
      cms - the cms context
  • Method Details

    • applyChanges

      public void applyChanges() throws CmsException
      Sets the new password for the current logged in user.

      Throws:
      CmsException - if something goes wrong
    • getConfirmation

      Returns the confirmation.

      Returns:
      the confirmation
    • getCurrentPwd

      Returns the current password.

      Returns:
      the current password
    • getNewPwd

      public String getNewPwd()
      Returns the new password.

      Returns:
      the new password
    • setConfirmation

      public void setConfirmation(String confirmation)
      Sets the confirmation.

      Parameters:
      confirmation - the confirmation to set
    • setCurrentPwd

      public void setCurrentPwd(String currentPwd)
      Sets the current password.

      Parameters:
      currentPwd - the current password to set
    • setNewPwd

      public void setNewPwd(String newPwd)
      Sets the new password.

      Parameters:
      newPwd - the new password to set
    • validate

      public void validate()
      Validates that the confirmation matches the new password.