Expand description
One-stop security configuration facade for a participant.
SecurityBundle groups the two things a participant needs to run with
DDS-Security observability — the access-control/crypto SecurityProfile
and the security-event LoggingPlugin — behind a single builder. It is
handed to the runtime via RuntimeConfig::with_security_bundle, which wires
the profile into RuntimeConfig.security and the logger into
RuntimeConfig.security_logger.
use zerodds_security_runtime::SecurityBundle;
use zerodds_security_logging::StderrLoggingPlugin;
use zerodds_security_runtime::LogLevel;
let bundle = SecurityBundle::builder()
.logging_plugin(Box::new(StderrLoggingPlugin::with_level(LogLevel::Warning)))
.build();
assert!(bundle.has_logging());Structs§
- Security
Bundle - Bundles the security configuration a participant needs — the
access-control/crypto
SecurityProfileand the security-eventLoggingPlugin— behind one builder, ready to hand to a runtime config. - Security
Bundle Builder - Builder for
SecurityBundle. Every setter is optional and chainable.