public function isPasswordValid($password,  core_kernel_classes_Resource $user)
    {
        $returnValue = (bool) false;

        if(!is_string($password)){
			throw new core_kernel_users_Exception('The password must be of "string" type, got '.gettype($password));
		}
		
		$hash = $user->getUniquePropertyValue(new core_kernel_classes_Property(GenerisRdf::PROPERTY_USER_PASSWORD));
		$returnValue = core_kernel_users_Service::getPasswordHash()->verify($password, $hash);

        return (bool) $returnValue;
    }
public function isPasswordValid($password,  core_kernel_classes_Resource $user)
    {
        $returnValue = (bool) false;

        if(!is_string($password)){
			throw new core_kernel_users_Exception('The password must be of "string" type, got '.gettype($password));
		}
		
		$hash = $user->getUniquePropertyValue(new core_kernel_classes_Property(GenerisRdf::PROPERTY_USER_PASSWORD));
		$returnValue = core_kernel_users_Service::getPasswordHash()->verify($password, $hash);

        return (bool) $returnValue;
    }
public function isPasswordValid ( $ password , core_kernel_classes_Resource $ user ) { $ returnValue = ( bool ) false ; if ( ! is_string ( $ password ) ) { throw new core_kernel_users_Exception ( 'The password must be of "string" type, got ' . gettype ( $ password ) ) ; } $ hash = $ user -> getUniquePropertyValue ( new core_kernel_classes_Property ( GenerisRdf :: PROPERTY_USER_PASSWORD ) ) ; $ returnValue = core_kernel_users_Service :: getPasswordHash ( ) -> verify ( $ password , $ hash ) ; return ( bool ) $ returnValue ; }
used in conjunction with the callback validator
to test the pasword entered

@access public
@author Jerome Bogaerts, <jerome@taotesting.com>
@param  string password used in conjunction with the callback validator to test the pasword entered
@param  Resource user used in conjunction with the callback validator to test the pasword entered
@return boolean
used in conjunction with the callback validator to test the pasword entered