MetadataSerializer.GetMetadataSigningCertificate 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取从指定的密钥标识符创建 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
参数
从 X.509 证书创建密钥标识符。
返回
从指定的密钥标识符创建 X.509 证书。
例外
ski
为 null
。
无法找到 ski
中的 X509RawDataKeyIdentifierClause 类型的一个密钥标识符子句。 强制默认行为,可以重写该方法支持其他密钥标识符从句。
注解
默认情况下,此方法仅支持 类型的 X509RawDataKeyIdentifierClause密钥标识符子句。 可以重写此方法以支持其他类型的密钥标识符子句。 此方法由 ValidateSigningCredential 方向调用。