SigningCredentials Constructor (SecurityKey, String, String, SecurityKeyIdentifier)

 

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,
	SecurityKeyIdentifier signingKeyIdentifier
)

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.

signingKeyIdentifier
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

A SecurityKeyIdentifier that specifies the identifier that represents the key that is used to create a digital signature.

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: