def require_encryption(self, bool): """ Set whether a non encrypted transport connection is allowed There are several ways within the AMQP protocol suite to get encrypted connections: - Use TLS - Use a SASL with a mechanism that supports security layers The default if this option is not set is to allow unencrypted connections. :param bool: ``True`` if encryption is required on this transport, ``False`` otherwise. :type bool: ``bool`` """ pn_transport_require_encryption(self._impl, bool)
def require_encryption(self, bool): pn_transport_require_encryption(self._impl, bool)