pub struct MTLSManager { /* private fields */ }Expand description
mTLS certificate manager
Implementations§
Source§impl MTLSManager
impl MTLSManager
Sourcepub fn new(config: MTLSConfig) -> Self
pub fn new(config: MTLSConfig) -> Self
Create a new mTLS manager
Sourcepub async fn load_server_config(&self) -> Result<Arc<ServerConfig>>
pub async fn load_server_config(&self) -> Result<Arc<ServerConfig>>
Load server TLS configuration
Sourcepub async fn load_client_config(&self) -> Result<Arc<ClientConfig>>
pub async fn load_client_config(&self) -> Result<Arc<ClientConfig>>
Load client TLS configuration
Sourcepub async fn load_ca_certificate(&self) -> Result<Certificate>
pub async fn load_ca_certificate(&self) -> Result<Certificate>
Load CA certificate for tonic client TLS configuration
Sourcepub fn start_rotation_monitor(&self)
pub fn start_rotation_monitor(&self)
Start certificate rotation monitoring
Sourcepub async fn get_server_config(&self) -> Option<Arc<ServerConfig>>
pub async fn get_server_config(&self) -> Option<Arc<ServerConfig>>
Get current server config (for use with tonic)
Sourcepub async fn get_client_config(&self) -> Option<Arc<ClientConfig>>
pub async fn get_client_config(&self) -> Option<Arc<ClientConfig>>
Get current client config (for use with tonic)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MTLSManager
impl !RefUnwindSafe for MTLSManager
impl Send for MTLSManager
impl Sync for MTLSManager
impl Unpin for MTLSManager
impl UnsafeUnpin for MTLSManager
impl !UnwindSafe for MTLSManager
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request