def require_auth(self, bool: bool) -> None: """ Set whether a non-authenticated transport connection is allowed. There are several ways within the AMQP protocol suite to get unauthenticated connections: - Use no SASL layer (with either no TLS or TLS without client certificates) - Use a SASL layer but the ANONYMOUS mechanism The default if this option is not set is to allow unauthenticated connections. :param bool: ``True`` when authenticated connections are required. """ pn_transport_require_auth(self._impl, bool)
def require_auth(self, bool): pn_transport_require_auth(self._impl, bool)