Click or drag to resize

HashAlgorithmName Structure

Specifies the name of a cryptographic hash algorithm.

Namespace:  MongoDB.Driver.Core.Authentication.Vendored
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public struct HashAlgorithmName : IEquatable<HashAlgorithmName>

The HashAlgorithmName type exposes the following members.

Constructors
  NameDescription
Public methodHashAlgorithmName
Gets a HashAlgorithmName representing a custom name.
Top
Properties
  NameDescription
Public propertyStatic memberMD5
Gets a HashAlgorithmName representing "MD5"
Public propertyName
Gets the underlying string representation of the algorithm name.
Public propertyStatic memberSHA1
Gets a HashAlgorithmName representing "SHA1"
Public propertyStatic memberSHA256
Gets a HashAlgorithmName representing "SHA256"
Public propertyStatic memberSHA384
Gets a HashAlgorithmName representing "SHA384"
Public propertyStatic memberSHA512
Gets a HashAlgorithmName representing "SHA512"
Top
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(HashAlgorithmName)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Remarks
Asymmetric Algorithms implemented using Microsoft's CNG (Cryptography Next Generation) API will interpret the underlying string value as a CNG algorithm identifier: * https://msdn.microsoft.com/en-us/library/windows/desktop/aa375534(v=vs.85).aspx As with CNG, the names are case-sensitive. Asymmetric Algorithms implemented using other technologies: * Must recognize at least "MD5", "SHA1", "SHA256", "SHA384", and "SHA512". * Should recognize additional CNG IDs for any other hash algorithms that they also support.
See Also