Enum mongodb::options::AuthMechanism [−][src]
The authentication mechanisms supported by MongoDB.
Note: not all of these mechanisms are currently supported by the driver.
Variants (Non-exhaustive)
MongoDB Challenge Response nonce and MD5 based authentication system. It is currently deprecated and will never be supported by this driver.
The SCRAM-SHA-1 mechanism as defined in RFC 5802.
See the MongoDB documentation for more information.
The SCRAM-SHA-256 mechanism which extends RFC 5802 and is formally defined in RFC 7677.
See the MongoDB documentation for more information.
The MONGODB-X509 mechanism based on the usage of X.509 certificates to validate a client where the distinguished subject name of the client certificate acts as the username.
See the MongoDB documentation for more information.
Kerberos authentication mechanism as defined in RFC 4752.
See the MongoDB documentation for more information.
Note: This mechanism is not currently supported by this driver but will be in the future.
The SASL PLAIN mechanism, as defined in RFC 4616, is used in MongoDB to perform LDAP authentication and cannot be used for any other type of authenticaiton. Since the credentials are stored outside of MongoDB, the “$external” database must be used for authentication.
See the MongoDB documentation for more information on LDAP authentication.
MONGODB-AWS authenticates using AWS IAM credentials (an access key ID and a secret access key), temporary AWS IAM credentials obtained from an AWS Security Token Service (STS) Assume Role request, or temporary AWS IAM credentials assigned to an EC2 instance or ECS task.
Note: Only server versions 4.4+ support AWS authentication. Additionally, the driver only supports AWS authentication with the tokio runtime.
Implementations
impl AuthMechanism
[src]
pub fn validate_credential(&self, credential: &Credential) -> Result<()>
[src]
Determines if the provided credentials have the required information to perform authentication.
pub fn as_str(&self) -> &'static str
[src]
Returns this AuthMechanism
as a string.
Trait Implementations
impl Clone for AuthMechanism
[src]
fn clone(&self) -> AuthMechanism
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AuthMechanism
[src]
impl<'de> Deserialize<'de> for AuthMechanism
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl FromStr for AuthMechanism
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(str: &str) -> Result<Self>
[src]
impl PartialEq<AuthMechanism> for AuthMechanism
[src]
fn eq(&self, other: &AuthMechanism) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for AuthMechanism
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthMechanism
impl Send for AuthMechanism
impl Sync for AuthMechanism
impl Unpin for AuthMechanism
impl UnwindSafe for AuthMechanism
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,