public function setPassword( core_kernel_classes_Resource $user, $password)
    {
        if(!is_string($password)){
			throw new core_kernel_users_Exception('The password must be of "string" type, got '.gettype($password));
		}
		
		$user->editPropertyValues(new core_kernel_classes_Property(GenerisRdf::PROPERTY_USER_PASSWORD),core_kernel_users_Service::getPasswordHash()->encrypt($password));
    }
public function setPassword( core_kernel_classes_Resource $user, $password)
    {
        if(!is_string($password)){
			throw new core_kernel_users_Exception('The password must be of "string" type, got '.gettype($password));
		}
		
		$user->editPropertyValues(new core_kernel_classes_Property(GenerisRdf::PROPERTY_USER_PASSWORD),core_kernel_users_Service::getPasswordHash()->encrypt($password));
    }
public function setPassword ( core_kernel_classes_Resource $ user , $ password ) { if ( ! is_string ( $ password ) ) { throw new core_kernel_users_Exception ( 'The password must be of "string" type, got ' . gettype ( $ password ) ) ; } $ user -> editPropertyValues ( new core_kernel_classes_Property ( GenerisRdf :: PROPERTY_USER_PASSWORD ) , core_kernel_users_Service :: getPasswordHash ( ) -> encrypt ( $ password ) ) ; }
Set the password of a specifc user.

@access public
@author Jerome Bogaerts, <jerome@taotesting.com>
@param  Resource user The user you want to set the password.
@param  string password The md5 hash of the password you want to set to the user.
Set the password of a specifc user .