X509SigningCredentials Constructors

Definition

Initializes a new instance of the X509SigningCredentials class based on a specified X.509 certificate.

Overloads

X509SigningCredentials(X509Certificate2)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate.

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate and security key identifier.

X509SigningCredentials(X509Certificate2, String, String)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate, signature algorithm, and digest algorithm.

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier, String, String)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate, security key identifier, signature algorithm, and digest algorithm.

X509SigningCredentials(X509Certificate2)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate.

public:
 X509SigningCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2)

Parameters

certificate
X509Certificate2

The X.509 certificate.

Remarks

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

Applies to

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate and security key identifier.

public:
 X509SigningCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski);
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.IdentityModel.Tokens.SecurityKeyIdentifier ski);
new System.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2, ski As SecurityKeyIdentifier)

Parameters

certificate
X509Certificate2

The X.509 certificate.

ski
SecurityKeyIdentifier

The security key identifier.

Remarks

The key identifier clause types supported by Windows Communication Foundation for generating a security key identifier that references an X509SecurityToken are X509SubjectKeyIdentifierClause, X509ThumbprintKeyIdentifierClause, X509IssuerSerialKeyIdentifierClause, and X509RawDataKeyIdentifierClause. However, in order to enable custom scenarios, this constructor does not perform any validation on the clause types that were used to generate the security key identifier supplied in the ski parameter.

Applies to

X509SigningCredentials(X509Certificate2, String, String)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate, signature algorithm, and digest algorithm.

public:
 X509SigningCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::String ^ signatureAlgorithm, System::String ^ digestAlgorithm);
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string signatureAlgorithm, string digestAlgorithm);
new System.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string -> System.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2, signatureAlgorithm As String, digestAlgorithm As String)

Parameters

certificate
X509Certificate2

The X.509 certificate.

signatureAlgorithm
String

The signature algorithm.

digestAlgorithm
String

The digest algorithm.

Remarks

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

Applies to

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier, String, String)

Initializes a new instance of the X509SigningCredentials class based on the specified X.509 certificate, security key identifier, signature algorithm, and digest algorithm.

public:
 X509SigningCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski, System::String ^ signatureAlgorithm, System::String ^ digestAlgorithm);
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.IdentityModel.Tokens.SecurityKeyIdentifier ski, string signatureAlgorithm, string digestAlgorithm);
new System.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.IdentityModel.Tokens.SecurityKeyIdentifier * string * string -> System.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2, ski As SecurityKeyIdentifier, signatureAlgorithm As String, digestAlgorithm As String)

Parameters

certificate
X509Certificate2

The X.509 certificate.

ski
SecurityKeyIdentifier

The security key identifier.

signatureAlgorithm
String

The signature algorithm.

digestAlgorithm
String

The digest algorithm.

Remarks

The key identifier clause types supported by Windows Communication Foundation for generating a security key identifier that references an X509SecurityToken are X509SubjectKeyIdentifierClause, X509ThumbprintKeyIdentifierClause, X509IssuerSerialKeyIdentifierClause, and X509RawDataKeyIdentifierClause. However, in order to enable custom scenarios, this constructor does not perform any validation on the clause types that were used to generate the security key identifier supplied in the ski parameter.

Applies to