X509SigningCredentials Constructor (X509Certificate2, String, String)

.NET Framework (current version)
 
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 X509SigningCredentials class based on the specified X.509 certificate, signature algorithm, and digest algorithm.

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

public X509SigningCredentials(
	X509Certificate2 certificate,
	string signatureAlgorithm,
	string digestAlgorithm
)

Parameters

certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2

The X.509 certificate.

signatureAlgorithm
Type: System.String

The signature algorithm.

digestAlgorithm
Type: System.String

The digest algorithm.

By default, this constructor uses an X509RawDataKeyIdentifierClause to generate the security key identifier.

.NET Framework
Available since 4.5
Return to top
Show: