pub enum AuthMethod {
Anonymous,
SaslPlain,
SaslScramSha256,
SaslScramSha512,
SaslOAuthBearer,
SaslGssapi,
MTls,
}Expand description
How a Principal was authenticated. A strict superset of
SaslMechanism that also covers mTLS client-cert authentication
and the implicit ANONYMOUS path on PLAINTEXT / SSL-no-mTLS
listeners.
Kept distinct from SaslMechanism because the latter has a
from_wire/wire_name contract and is stored verbatim in
V1ScramCredential metadata records — neither applies to mTLS.
Variants§
Anonymous
Anonymous (no SASL, no mTLS). Used for PLAINTEXT listeners and for SSL listeners where the client did not present a cert.
SaslPlain
SASL/PLAIN.
SaslScramSha256
SASL/SCRAM-SHA-256.
SaslScramSha512
SASL/SCRAM-SHA-512.
SaslOAuthBearer
SASL/OAUTHBEARER.
SaslGssapi
SASL/GSSAPI (Kerberos, RFC 4752).
MTls
mTLS client-cert verified against the listener’s
client_ca_path.
Implementations§
Source§impl AuthMethod
impl AuthMethod
Sourcepub fn from_sasl(m: SaslMechanism) -> Self
pub fn from_sasl(m: SaslMechanism) -> Self
Map a SASL SaslMechanism onto its AuthMethod equivalent.
Trait Implementations§
Source§impl Clone for AuthMethod
impl Clone for AuthMethod
Source§fn clone(&self) -> AuthMethod
fn clone(&self) -> AuthMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AuthMethod
Source§impl Debug for AuthMethod
impl Debug for AuthMethod
impl Eq for AuthMethod
Source§impl Hash for AuthMethod
impl Hash for AuthMethod
Source§impl PartialEq for AuthMethod
impl PartialEq for AuthMethod
Source§fn eq(&self, other: &AuthMethod) -> bool
fn eq(&self, other: &AuthMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthMethod
Auto Trait Implementations§
impl Freeze for AuthMethod
impl RefUnwindSafe for AuthMethod
impl Send for AuthMethod
impl Sync for AuthMethod
impl Unpin for AuthMethod
impl UnsafeUnpin for AuthMethod
impl UnwindSafe for AuthMethod
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