Edit

Share via


InMemorySymmetricSecurityKey.GetKeyedHashAlgorithm(String) Method

Definition

Gets an instance of the specified keyed hash algorithm.

public:
 override System::Security::Cryptography::KeyedHashAlgorithm ^ GetKeyedHashAlgorithm(System::String ^ algorithm);
public override System.Security.Cryptography.KeyedHashAlgorithm GetKeyedHashAlgorithm (string algorithm);
override this.GetKeyedHashAlgorithm : string -> System.Security.Cryptography.KeyedHashAlgorithm
Public Overrides Function GetKeyedHashAlgorithm (algorithm As String) As KeyedHashAlgorithm

Parameters

algorithm
String

The keyed hash algorithm to get an instance of.

Returns

A KeyedHashAlgorithm that represents the keyed hash algorithm.

Exceptions

algorithm is not supported. The supported algorithms is HmacSha1Signature.

Applies to