pub struct MutualTlsClientConfig {
pub client_id: String,
pub auth_method: MutualTlsMethod,
pub ca_certificates: Vec<Vec<u8>>,
pub client_certificate: Option<Vec<u8>>,
pub expected_subject_dn: Option<String>,
pub certificate_bound_access_tokens: bool,
}Expand description
Mutual TLS client configuration
Fields§
§client_id: StringClient identifier
auth_method: MutualTlsMethodAuthentication method
ca_certificates: Vec<Vec<u8>>For PKI method: DER trust anchors for this client. When empty, the manager’s CA store
(see MutualTlsManager::add_ca_certificate) is used; at least one must exist.
client_certificate: Option<Vec<u8>>Registered certificate (DER). Self-signed method: its public key must match. PKI method:
an exact pin; the presented certificate must be byte-identical (takes precedence over
expected_subject_dn).
expected_subject_dn: Option<String>Exact subject distinguished name the certificate must carry (compared case- and
whitespace-insensitively after rendering as CN=a, O=b, as in
X509CertificateInfo::subject_dn). A PKI client needs this or client_certificate.
certificate_bound_access_tokens: boolWhether to bind access tokens to certificates
Trait Implementations§
Source§impl Clone for MutualTlsClientConfig
impl Clone for MutualTlsClientConfig
Auto Trait Implementations§
impl Freeze for MutualTlsClientConfig
impl RefUnwindSafe for MutualTlsClientConfig
impl Send for MutualTlsClientConfig
impl Sync for MutualTlsClientConfig
impl Unpin for MutualTlsClientConfig
impl UnsafeUnpin for MutualTlsClientConfig
impl UnwindSafe for MutualTlsClientConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more