org.opencms.security
Class CmsPasswordInfo

java.lang.Object
  extended byorg.opencms.security.CmsPasswordInfo

public class CmsPasswordInfo
extends java.lang.Object

Validating bean for changing the password.

Since:
6.0.0
Version:
$Revision: 1.7 $
Author:
Michael Moossen

Constructor Summary
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
 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 Pwd.
 java.lang.String getNewPwd()
          Returns the new Pwd.
 void setConfirmation(java.lang.String confirmation)
          Sets the confirmation.
 void setCurrentPwd(java.lang.String currentPwd)
          Sets the current Pwd.
 void setNewPwd(java.lang.String newPwd)
          Sets the new Pwd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Pwd.

Returns:
the current Pwd

getNewPwd

public java.lang.String getNewPwd()
Returns the new Pwd.

Returns:
the new Pwd

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 Pwd.

Parameters:
currentPwd - the current Pwd to set

setNewPwd

public void setNewPwd(java.lang.String newPwd)
Sets the new Pwd.

Parameters:
newPwd - the new Pwd to set