X509SigningCredentials 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的 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 证书。
安全密钥标识符。
注解
Windows Communication Foundation 支持生成引用 X509SecurityToken 的安全密钥标识符的密钥标识符子句类型为 X509SubjectKeyIdentifierClause、 X509ThumbprintKeyIdentifierClause、 X509IssuerSerialKeyIdentifierClause和 X509RawDataKeyIdentifierClause。 但是,为了启用自定义方案,此构造函数不会对用于生成 参数中 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 证书。
安全密钥标识符。
- signatureAlgorithm
- String
签名算法。
- digestAlgorithm
- String
摘要算法。
注解
Windows Communication Foundation 支持生成引用 X509SecurityToken 的安全密钥标识符的密钥标识符子句类型为 X509SubjectKeyIdentifierClause、 X509ThumbprintKeyIdentifierClause、 X509IssuerSerialKeyIdentifierClause和 X509RawDataKeyIdentifierClause。 但是,为了启用自定义方案,此构造函数不会对用于生成 参数中 ski
提供的安全密钥标识符的子句类型执行任何验证。