MetadataSerializer.GetMetadataSigningCertificate 方法

定义

获取从指定的密钥标识符创建 X.509 证书。

protected:
 virtual System::Security::Cryptography::X509Certificates::X509Certificate2 ^ GetMetadataSigningCertificate(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ ski);
protected virtual System.Security.Cryptography.X509Certificates.X509Certificate2 GetMetadataSigningCertificate (System.IdentityModel.Tokens.SecurityKeyIdentifier ski);
abstract member GetMetadataSigningCertificate : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.Security.Cryptography.X509Certificates.X509Certificate2
override this.GetMetadataSigningCertificate : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.Security.Cryptography.X509Certificates.X509Certificate2
Protected Overridable Function GetMetadataSigningCertificate (ski As SecurityKeyIdentifier) As X509Certificate2

参数

ski
SecurityKeyIdentifier

从 X.509 证书创建密钥标识符。

返回

从指定的密钥标识符创建 X.509 证书。

例外

skinull

无法找到 ski 中的 X509RawDataKeyIdentifierClause 类型的一个密钥标识符子句。 强制默认行为,可以重写该方法支持其他密钥标识符从句。

注解

默认情况下,此方法仅支持 类型的 X509RawDataKeyIdentifierClause密钥标识符子句。 可以重写此方法以支持其他类型的密钥标识符子句。 此方法由 ValidateSigningCredential 方向调用。

适用于