Class MongoCredential
Credential to access a MongoDB database.
- Inheritance
-
Mongo
Credential
- Implements
- Inherited Members
Constructors
- Mongo
Credential(string, Mongo Identity, Mongo Identity Evidence) Initializes a new instance of the Mongo
Credential class.
Properties
- Evidence
Gets the evidence.
- Identity
Gets the identity.
- Mechanism
Gets the mechanism to authenticate with.
- Password
Gets the password.
- Source
Gets the source.
- Username
Gets the username.
Methods
- Create
Credential(string, string, Secure String) Creates a default credential. Less secure when used in conjunction with SCRAM-SHA-256, due to the need to store the password in a managed string in order to SaslPrep it.
- Create
Credential(string, string, string) Creates a default credential.
- Create
Gssapi Credential(string) Creates a GSSAPI credential.
- Create
Gssapi Credential(string, Secure String) Creates a GSSAPI credential.
- Create
Gssapi Credential(string, string) Creates a GSSAPI credential.
- Create
MongoX509 Credential(string) Creates a credential used with MONGODB-X509.
- Create
Oidc Credential(IOidc Callback, string) Creates a credential used with MONGODB-OIDC.
- Create
Oidc Credential(string, string) Creates a credential used with MONGODB-OIDC.
- Create
Plain Credential(string, string, Secure String) Creates a PLAIN credential.
- Create
Plain Credential(string, string, string) Creates a PLAIN credential.
- Equals(Mongo
Credential) Compares this MongoCredential to another MongoCredential.
- Equals(object)
Compares this MongoCredential to another MongoCredential.
- Get
Hash Code() Gets the hashcode for the credential.
- GetMechanismProperty<T>(string, T)
Gets the mechanism property.
- To
String() Returns a string representation of the credential.
- With
Mechanism Property(string, object) Creates a new MongoCredential with the specified mechanism property.
Operators
- operator ==(Mongo
Credential, Mongo Credential) Compares two MongoCredentials.
- operator !=(Mongo
Credential, Mongo Credential) Compares two MongoCredentials.