Package org.opencms.security
Class CmsPasswordInfo
- java.lang.Object
-
- org.opencms.security.CmsPasswordInfo
-
public class CmsPasswordInfo extends java.lang.Object
Validating bean for changing the password.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsPasswordInfo()
Default Constructor.CmsPasswordInfo(CmsObject cms)
Use this Constructor if you need to check the old password of the current logged in user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyChanges()
Sets the new password for the current logged in user.java.lang.String
getConfirmation()
Returns the confirmation.java.lang.String
getCurrentPwd()
Returns the current password.java.lang.String
getNewPwd()
Returns the new password.void
setConfirmation(java.lang.String confirmation)
Sets the confirmation.void
setCurrentPwd(java.lang.String currentPwd)
Sets the current password.void
setNewPwd(java.lang.String newPwd)
Sets the new password.void
validate()
Validates that the confirmation matches the new password.
-
-
-
Constructor Detail
-
CmsPasswordInfo
public CmsPasswordInfo()
Default Constructor.
-
CmsPasswordInfo
public CmsPasswordInfo(CmsObject cms)
Use this Constructor if you need to check the old password of the current logged in user.- Parameters:
cms
- the cms context
-
-
Method Detail
-
applyChanges
public void applyChanges() throws CmsException
Sets the new password for the current logged in user.- Throws:
CmsException
- if something goes wrong
-
getConfirmation
public java.lang.String getConfirmation()
Returns the confirmation.- Returns:
- the confirmation
-
getCurrentPwd
public java.lang.String getCurrentPwd()
Returns the current password.- Returns:
- the current password
-
getNewPwd
public java.lang.String getNewPwd()
Returns the new password.- Returns:
- the new password
-
setConfirmation
public void setConfirmation(java.lang.String confirmation)
Sets the confirmation.- Parameters:
confirmation
- the confirmation to set
-
setCurrentPwd
public void setCurrentPwd(java.lang.String currentPwd)
Sets the current password.- Parameters:
currentPwd
- the current password to set
-
setNewPwd
public void setNewPwd(java.lang.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.
-
-