#[non_exhaustive]pub struct SslConfigs { /* private fields */ }Expand description
SSL/TLS configuration for Kafka connections.
Translated from org.apache.kafka.common.config.SslConfigs. The Java class
hosts only the ssl.* config keys and defaults; the values themselves
travel in the Map<String, ?> handed to SslFactory.configure. The Rust
struct keeps Java’s name and constants, and additionally holds the
client-relevant subset of those values, parsed once from the client config
properties. The fields are crate-private: callers set them through the
ssl.* properties of a client config, as a Java caller does.
Java defaults to JKS keystores; Rust/rustls works natively with PEM,
so truststore_type and keystore_type default to "PEM".
Implementations§
Source§impl SslConfigs
impl SslConfigs
Sourcepub const SSL_PROTOCOL_CONFIG: &str = "ssl.protocol"
pub const SSL_PROTOCOL_CONFIG: &str = "ssl.protocol"
Config key: ssl.protocol.
Sourcepub const DEFAULT_SSL_PROTOCOL: &str = "TLSv1.3"
pub const DEFAULT_SSL_PROTOCOL: &str = "TLSv1.3"
Default SSL protocol.
Sourcepub const SSL_PROVIDER_CONFIG: &str = "ssl.provider"
pub const SSL_PROVIDER_CONFIG: &str = "ssl.provider"
Config key: ssl.provider.
Sourcepub const SSL_CIPHER_SUITES_CONFIG: &str = "ssl.cipher.suites"
pub const SSL_CIPHER_SUITES_CONFIG: &str = "ssl.cipher.suites"
Config key: ssl.cipher.suites.
Sourcepub const SSL_ENABLED_PROTOCOLS_CONFIG: &str = "ssl.enabled.protocols"
pub const SSL_ENABLED_PROTOCOLS_CONFIG: &str = "ssl.enabled.protocols"
Config key: ssl.enabled.protocols.
Sourcepub const DEFAULT_SSL_ENABLED_PROTOCOLS: &str = "TLSv1.2,TLSv1.3"
pub const DEFAULT_SSL_ENABLED_PROTOCOLS: &str = "TLSv1.2,TLSv1.3"
Default enabled SSL protocols.
Sourcepub const SSL_KEYSTORE_TYPE_CONFIG: &str = "ssl.keystore.type"
pub const SSL_KEYSTORE_TYPE_CONFIG: &str = "ssl.keystore.type"
Config key: ssl.keystore.type.
Sourcepub const DEFAULT_SSL_KEYSTORE_TYPE: &str = "JKS"
pub const DEFAULT_SSL_KEYSTORE_TYPE: &str = "JKS"
Default keystore type in Java. Rust defaults to PEM (see SslConfigs::default).
Sourcepub const SSL_KEYSTORE_KEY_CONFIG: &str = "ssl.keystore.key"
pub const SSL_KEYSTORE_KEY_CONFIG: &str = "ssl.keystore.key"
Config key: ssl.keystore.key.
Sourcepub const SSL_KEYSTORE_CERTIFICATE_CHAIN_CONFIG: &str = "ssl.keystore.certificate.chain"
pub const SSL_KEYSTORE_CERTIFICATE_CHAIN_CONFIG: &str = "ssl.keystore.certificate.chain"
Config key: ssl.keystore.certificate.chain.
Sourcepub const SSL_TRUSTSTORE_CERTIFICATES_CONFIG: &str = "ssl.truststore.certificates"
pub const SSL_TRUSTSTORE_CERTIFICATES_CONFIG: &str = "ssl.truststore.certificates"
Config key: ssl.truststore.certificates.
Sourcepub const SSL_KEYSTORE_LOCATION_CONFIG: &str = "ssl.keystore.location"
pub const SSL_KEYSTORE_LOCATION_CONFIG: &str = "ssl.keystore.location"
Config key: ssl.keystore.location.
Sourcepub const SSL_KEYSTORE_PASSWORD_CONFIG: &str = "ssl.keystore.password"
pub const SSL_KEYSTORE_PASSWORD_CONFIG: &str = "ssl.keystore.password"
Config key: ssl.keystore.password.
Sourcepub const SSL_KEY_PASSWORD_CONFIG: &str = "ssl.key.password"
pub const SSL_KEY_PASSWORD_CONFIG: &str = "ssl.key.password"
Config key: ssl.key.password.
Sourcepub const SSL_TRUSTSTORE_TYPE_CONFIG: &str = "ssl.truststore.type"
pub const SSL_TRUSTSTORE_TYPE_CONFIG: &str = "ssl.truststore.type"
Config key: ssl.truststore.type.
Sourcepub const DEFAULT_SSL_TRUSTSTORE_TYPE: &str = "JKS"
pub const DEFAULT_SSL_TRUSTSTORE_TYPE: &str = "JKS"
Default truststore type in Java. Rust defaults to PEM (see SslConfigs::default).
Sourcepub const SSL_TRUSTSTORE_LOCATION_CONFIG: &str = "ssl.truststore.location"
pub const SSL_TRUSTSTORE_LOCATION_CONFIG: &str = "ssl.truststore.location"
Config key: ssl.truststore.location.
Sourcepub const SSL_TRUSTSTORE_PASSWORD_CONFIG: &str = "ssl.truststore.password"
pub const SSL_TRUSTSTORE_PASSWORD_CONFIG: &str = "ssl.truststore.password"
Config key: ssl.truststore.password.
Sourcepub const SSL_KEYMANAGER_ALGORITHM_CONFIG: &str = "ssl.keymanager.algorithm"
pub const SSL_KEYMANAGER_ALGORITHM_CONFIG: &str = "ssl.keymanager.algorithm"
Config key: ssl.keymanager.algorithm.
Sourcepub const SSL_TRUSTMANAGER_ALGORITHM_CONFIG: &str = "ssl.trustmanager.algorithm"
pub const SSL_TRUSTMANAGER_ALGORITHM_CONFIG: &str = "ssl.trustmanager.algorithm"
Config key: ssl.trustmanager.algorithm.
Sourcepub const SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG: &str = "ssl.endpoint.identification.algorithm"
pub const SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG: &str = "ssl.endpoint.identification.algorithm"
Config key: ssl.endpoint.identification.algorithm.
Sourcepub const DEFAULT_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: &str = "https"
pub const DEFAULT_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: &str = "https"
Default endpoint identification algorithm (enables hostname verification).
Sourcepub const SSL_SECURE_RANDOM_IMPLEMENTATION_CONFIG: &str = "ssl.secure.random.implementation"
pub const SSL_SECURE_RANDOM_IMPLEMENTATION_CONFIG: &str = "ssl.secure.random.implementation"
Config key: ssl.secure.random.implementation.
Trait Implementations§
Source§impl Clone for SslConfigs
impl Clone for SslConfigs
Source§fn clone(&self) -> SslConfigs
fn clone(&self) -> SslConfigs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SslConfigs
impl Debug for SslConfigs
Source§impl Default for SslConfigs
impl Default for SslConfigs
Source§impl PartialEq for SslConfigs
impl PartialEq for SslConfigs
impl Eq for SslConfigs
impl StructuralPartialEq for SslConfigs
Auto Trait Implementations§
impl Freeze for SslConfigs
impl RefUnwindSafe for SslConfigs
impl Send for SslConfigs
impl Sync for SslConfigs
impl Unpin for SslConfigs
impl UnsafeUnpin for SslConfigs
impl UnwindSafe for SslConfigs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.