public hasAuthMech ( string $method ) : boolean | ||
$method | string | The method to check. |
return | boolean | Whether the method is supported. |
public function hasAuthMech($method)
{
$this->_checkConnected();
$method = trim(\Horde_String::upper($method));
if (is_array($this->_capability['sasl'])) {
foreach ($this->_capability['sasl'] as $sasl) {
if ($sasl == $method) {
return true;
}
}
}
return false;
}