Package org.opencms.security
Class CmsPasswordInfo
java.lang.Object
org.opencms.security.CmsPasswordInfo
Validating bean for changing the password.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionDefault Constructor.CmsPasswordInfo
(CmsObject cms) Use this Constructor if you need to check the old password of the current logged in user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the new password for the current logged in user.Returns the confirmation.Returns the current password.Returns the new password.void
setConfirmation
(String confirmation) Sets the confirmation.void
setCurrentPwd
(String currentPwd) Sets the current password.void
Sets the new password.void
validate()
Validates that the confirmation matches the new password.
-
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
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
Returns the new password.- Returns:
- the new password
-
setConfirmation
Sets the confirmation.- Parameters:
confirmation
- the confirmation to set
-
setCurrentPwd
Sets the current password.- Parameters:
currentPwd
- the current password to set
-
setNewPwd
Sets the new password.- Parameters:
newPwd
- the new password to set
-
validate
Validates that the confirmation matches the new password.
-