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 方法叫用 (Invoke)。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應