Export (0) Print
Expand All

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

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

.NET Framework Client Profile

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