public function getParam($key)
{
switch ($key) {
case 'xoauth2_token':
if (isset($this->_params[$key]) && $this->_params[$key] instanceof Horde_Imap_Client_Base_Password) {
return $this->_params[$key]->getPassword();
}
break;
}
return parent::getParam($key);
}