Expand description
Client-side TLS/SASL security surface for crate::Client.
This module mirrors the TLS settings of Kafka’s SslConfigs and the
trust and key store handling of DefaultSslEngineFactory. The public
clients and the inter-broker dialer negotiate the same way.
Re-exports§
pub use crate::sasl::SaslCredentials;
Structs§
- Client
Security - Full client security policy: the listener protocol to speak, plus the TLS and SASL material it implies.
- Password
- A secret configuration value, such as Kafka’s
ssl.key.password. - TlsConnector
Config - Client-side TLS settings, as Kafka’s
SslConfigsdefines them.
Enums§
- KeyStore
- The client certificate chain and private key for mutual TLS (Kafka
ssl.keystore.*). - TlsConfig
Error - An invalid TLS configuration. Kafka raises these as an
InvalidConfigurationExceptionor aKafkaExceptionwhen it builds the SSL engine factory. - TlsVersion
- A TLS protocol version name of
ssl.protocolandssl.enabled.protocols. - Trust
Store - The certificates that verify the broker certificate (Kafka
ssl.truststore.*).
Functions§
- connection_
target_ host - Return the hostname from one Kafka
host:portaddress.