org.opencms.security
Class CmsPasswordInfo

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

public class CmsPasswordInfo
extends java.lang.Object

Validating bean for changing the password.

Since:
6.0.0
Version:
$Revision: 1.13 $
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 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.
 
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 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.