Export (0) Print
Expand All

SymmetricSecurityKey.GetKeyedHashAlgorithm Method

When overridden in a derived class, gets an instance of the specified keyed hash algorithm.

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

public abstract KeyedHashAlgorithm GetKeyedHashAlgorithm(
	string algorithm
)

Parameters

algorithm
Type: System.String

The keyed hash algorithm to get an instance of.

Return Value

Type: System.Security.Cryptography.KeyedHashAlgorithm
A KeyedHashAlgorithm that represents the keyed hash algorithm.

Use the fields that represent keyed hash algorithms in the SecurityAlgorithms class to specify the algorithm.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft