Compartilhar via


InMemorySymmetricSecurityKey.GetKeyedHashAlgorithm(String) Método

Definição

Obtém uma instância do algoritmo de hash com chave especificado.

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

Parâmetros

algorithm
String

O algoritmo de hash com chave cuja instância será obtida.

Retornos

Um KeyedHashAlgorithm que representa o algoritmo de hash com chave.

Exceções

algorithm não é suportado. O algoritmo com suporte é HmacSha1Signature.

Aplica-se a