phpseclib\Net\SSH1::getSupportedAuthentications PHP Method

getSupportedAuthentications() public method

Just because a cipher is supported by an SSH1 server doesn't mean it's supported by this library. If $raw_output is set to true, returns, instead, an array of constants. ie. instead of array('password authentication'), you'll get array(self::AUTH_PASSWORD).
public getSupportedAuthentications ( boolean $raw_output = false ) : array
$raw_output boolean
return array
    function getSupportedAuthentications($raw_output = false)
    {
        return $raw_output ? array_keys($this->supported_authentications) : array_values($this->supported_authentications);
    }