A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mongodb.github.io/mongo-csharp-driver/2.8/apidocs/html/T_MongoDB_Driver_MongoCredential.htm below:

Credential to access a MongoDB database.

Inheritance Hierarchy Namespace:  MongoDB.Driver
Assembly:

MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa

Syntax
[SerializableAttribute]
public class MongoCredential : IEquatable<MongoCredential>
<SerializableAttribute>
Public Class MongoCredential
	Implements IEquatable(Of MongoCredential)
[<SerializableAttribute>]
type MongoCredential =  
    class
        interface IEquatable<MongoCredential>
    end

The MongoCredential type exposes the following members.

Constructors   Name Description MongoCredential

Initializes a new instance of the MongoCredential class.

Top Properties   Name Description Evidence

Gets the evidence.

Identity

Gets the identity.

Mechanism

Gets the mechanism to authenticate with. In .NET Standard, authenticating via SCRAM-SHA-256 may not work with non-ASCII passwords because SaslPrep is not fully implemented due to the lack of a string normalization function in .NET Standard 1.5. Normalizing the password into Unicode Normalization Form KC beforehand MAY help. SCRAM-SHA-1 is the recommended alternative for now.

Password Obsolete.

Gets the password.

Source

Gets the source.

Username

Gets the username.

Top Methods   Name Description CreateCredential(String, String, SecureString)

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. In .NET Standard, authenticating via SCRAM-SHA-256 may not work with non-ASCII passwords because SaslPrep is not fully implemented due to the lack of a string normalization function in .NET Standard 1.5. Normalizing the password into Unicode Normalization Form KC beforehand MAY help. SCRAM-SHA-1 is the recommended alternative for now.

CreateCredential(String, String, String)

Creates a default credential. In .NET Standard, authenticating via SCRAM-SHA-256 may not work with non-ASCII passwords because SaslPrep is not fully implemented due to the lack of a string normalization function in .NET Standard 1.5. Normalizing the password into Unicode Normalization Form KC beforehand MAY help. SCRAM-SHA-1 is the recommended alternative for now.

CreateGssapiCredential(String)

Creates a GSSAPI credential.

CreateGssapiCredential(String, SecureString)

Creates a GSSAPI credential.

CreateGssapiCredential(String, String)

Creates a GSSAPI credential.

CreateMongoCRCredential(String, String, SecureString) Obsolete.

Creates a credential used with MONGODB-CR.

CreateMongoCRCredential(String, String, String) Obsolete.

Creates a credential used with MONGODB-CR.

CreateMongoX509Credential

Creates a credential used with MONGODB-X509.

CreatePlainCredential(String, String, SecureString)

Creates a PLAIN credential.

CreatePlainCredential(String, String, String)

Creates a PLAIN credential.

Equals(Object)

Compares this MongoCredential to another MongoCredential.

(Overrides ObjectEquals(Object).) Equals(MongoCredential)

Compares this MongoCredential to another MongoCredential.

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.) GetHashCode

Gets the hashcode for the credential.

(Overrides ObjectGetHashCode.) GetMechanismPropertyT

Gets the mechanism property.

GetType

Gets the

Type

of the current instance.

(Inherited from Object.) MemberwiseClone

Creates a shallow copy of the current

Object

.

(Inherited from Object.) ToString

Returns a string representation of the credential.

(Overrides ObjectToString.) WithMechanismProperty

Creates a new MongoCredential with the specified mechanism property.

Top Operators Extension Methods See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4