InMemorySymmetricSecurityKey.GetKeyedHashAlgorithm Method (String)

 

Gets an instance of the specified keyed hash algorithm.

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

public override 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.

Exception Condition
InvalidOperationException

algorithm is not supported. The supported algorithms is HmacSha1Signature.

.NET Framework
Available since 3.0
Return to top
Show: