public class CmsPasswordInfo
extends java.lang.Object
构造器和说明 |
---|
CmsPasswordInfo()
Default Constructor.
|
CmsPasswordInfo(CmsObject cms)
Use this Constructor if you need to check the old password of the current logged in user.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public CmsPasswordInfo()
public CmsPasswordInfo(CmsObject cms)
cms
- the cms contextpublic void applyChanges() throws CmsException
CmsException
- if something goes wrongpublic java.lang.String getConfirmation()
public java.lang.String getCurrentPwd()
public java.lang.String getNewPwd()
public void setConfirmation(java.lang.String confirmation)
confirmation
- the confirmation to setpublic void setCurrentPwd(java.lang.String currentPwd)
currentPwd
- the current password to setpublic void setNewPwd(java.lang.String newPwd)
newPwd
- the new password to setpublic void validate()