protected function getSecureContext(ConnectionInterface $connection)
    {
        $context = array();
        if ($this->getForceIpv4Flag($connection)) {
            $context['bindto'] = '0.0.0.0:0';
        }
        if ($this->getAllowSelfSignedFlag($connection)) {
            $context['allow_self_signed'] = true;
        }
        return $context;
    }