SigningCredentials Constructor (SecurityKey, String, String)

 
System_CAPS_noteNote

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

Initializes a new instance of the SigningCredentials class.

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

public SigningCredentials(
	SecurityKey signingKey,
	string signatureAlgorithm,
	string digestAlgorithm
)

Parameters

signingKey
Type: System.IdentityModel.Tokens.SecurityKey

A SecurityKey that contains the cryptographic key that is used to generate the digital signature.

signatureAlgorithm
Type: System.String

A URI that represents the cryptographic algorithm that is used to generate the digital signature.

digestAlgorithm
Type: System.String

A URI that represents the cryptographic algorithm that is used to compute the digest for the portion of the SOAP message that is to be digitally signed.

Use the SecurityAlgorithms class to specify the signatureAlgorithm and digestAlgorithm parameters. The SecurityAlgorithms class contains a set of static, constant strings that represent cryptographic algorithms. The members that have a Signature suffix can be used to specify the signatureAlgoritm parameter and the members that have a Digest suffix can be used to specify the digestAlgorithm parameter.

.NET Framework
Available since 3.0
Return to top
Show: