InMemorySymmetricSecurityKey.GetKeyedHashAlgorithm(String) 方法

定义

获取指定的加密哈希算法的实例。

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

参数

algorithm
String

要获取其实例的加密哈希算法。

返回

一个表示加密哈希算法的 KeyedHashAlgorithm

例外

不支持 algorithm。 受支持的算法为 HmacSha1Signature

适用于