RsaSecurityKey.GetSignatureFormatter Method (String)

 

Gets the formatter algorithm for the digital signature.

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

public override AsymmetricSignatureFormatter GetSignatureFormatter(
	string algorithm
)

Parameters

algorithm
Type: System.String

The formatter algorithm for the digital signature to get an instance of. The supported algorithm is RsaSha1Signature.

Return Value

Type: System.Security.Cryptography.AsymmetricSignatureFormatter

An AsymmetricSignatureDeformatter that represents the formatter algorithm for the digital signature.

Exception Condition
CryptographicException

algorithm is not supported. The supported algorithm is RsaSha1Signature.

.NET Framework
Available since 3.0
Return to top
Show: