AsymmetricSecurityKey.GetHashAlgorithmForSignature Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, gets a cryptographic algorithm that generates a hash for a digital signature.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public abstract HashAlgorithm GetHashAlgorithmForSignature(
	string algorithm


Type: System.String

The hash algorithm.

Return Value

Type: System.Security.Cryptography.HashAlgorithm

A HashAlgorithm that generates hashes for digital signatures.

Use the static fields of the SecurityAlgorithms class to specify the algorithm.

.NET Framework
Available since 3.0
Return to top