共用方式為


X509SigningCredentials 建構函式

定義

根據指定的 X.509 憑證初始化 X509SigningCredentials 類別的新執行個體。

多載

X509SigningCredentials(X509Certificate2)

根據指定的 X.509 憑證初始化 X509SigningCredentials 類別的新執行個體。

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier)

根據指定的 X.509 憑證和安全性金鑰識別項,初始化 X509SigningCredentials 類別的新執行個體。

X509SigningCredentials(X509Certificate2, String, String)

根據指定的 X.509 憑證、簽章演算法和摘要演算法,初始化 X509SigningCredentials 類別的新執行個體。

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier, String, String)

根據指定的 X.509 憑證、安全性金鑰識別項、簽章演算法和摘要演算法,初始化 X509SigningCredentials 類別的新執行個體。

X509SigningCredentials(X509Certificate2)

根據指定的 X.509 憑證初始化 X509SigningCredentials 類別的新執行個體。

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)

參數

certificate
X509Certificate2

X.509 憑證。

備註

根據預設,此建構函式會使用 X509RawDataKeyIdentifierClause 來產生安全性密鑰標識碼。

適用於

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier)

根據指定的 X.509 憑證和安全性金鑰識別項,初始化 X509SigningCredentials 類別的新執行個體。

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)

參數

certificate
X509Certificate2

X.509 憑證。

ski
SecurityKeyIdentifier

安全性金鑰識別碼。

備註

Windows Communication Foundation 支援的密鑰標識子子句類型,用來產生參考 X509SecurityToken 的安全性金鑰標識碼為 X509SubjectKeyIdentifierClauseX509ThumbprintKeyIdentifierClauseX509IssuerSerialKeyIdentifierClauseX509RawDataKeyIdentifierClause。 不過,為了啟用自定義案例,此建構函式不會對用來產生 參數中 ski 提供之安全性密鑰標識碼的子句類型執行任何驗證。

適用於

X509SigningCredentials(X509Certificate2, String, String)

根據指定的 X.509 憑證、簽章演算法和摘要演算法,初始化 X509SigningCredentials 類別的新執行個體。

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)

參數

certificate
X509Certificate2

X.509 憑證。

signatureAlgorithm
String

簽章演算法。

digestAlgorithm
String

摘要演算法。

備註

根據預設,此建構函式會使用 X509RawDataKeyIdentifierClause 來產生安全性密鑰標識碼。

適用於

X509SigningCredentials(X509Certificate2, SecurityKeyIdentifier, String, String)

根據指定的 X.509 憑證、安全性金鑰識別項、簽章演算法和摘要演算法,初始化 X509SigningCredentials 類別的新執行個體。

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)

參數

certificate
X509Certificate2

X.509 憑證。

ski
SecurityKeyIdentifier

安全性金鑰識別碼。

signatureAlgorithm
String

簽章演算法。

digestAlgorithm
String

摘要演算法。

備註

Windows Communication Foundation 支援的密鑰標識子子句類型,用來產生參考 X509SecurityToken 的安全性金鑰標識碼為 X509SubjectKeyIdentifierClauseX509ThumbprintKeyIdentifierClauseX509IssuerSerialKeyIdentifierClauseX509RawDataKeyIdentifierClause。 不過,為了啟用自定義案例,此建構函式不會對用來產生 參數中 ski 提供之安全性密鑰標識碼的子句類型執行任何驗證。

適用於