語言

SqlColumnEncryptionKeyStoreProvider.VerifyColumnMasterKeyMetadata 方法

定義

當實作於派生類別時,此方法預期能驗證指定的簽章是否適用於欄位主金鑰、指定金鑰路徑及指定 enclave 行為。 預設實作會拋 NotImplementedException出 。

public:
 virtual bool VerifyColumnMasterKeyMetadata(System::String ^ masterKeyPath, bool allowEnclaveComputations, cli::array <System::Byte> ^ signature);
public virtual bool VerifyColumnMasterKeyMetadata(string masterKeyPath, bool allowEnclaveComputations, byte[] signature);
abstract member VerifyColumnMasterKeyMetadata : string * bool * byte[] -> bool
override this.VerifyColumnMasterKeyMetadata : string * bool * byte[] -> bool
Public Overridable Function VerifyColumnMasterKeyMetadata (masterKeyPath As String, allowEnclaveComputations As Boolean, signature As Byte()) As Boolean

參數

masterKeyPath
String

欄位主鍵路徑。 路徑格式是針對金鑰儲存提供者實作而定(例如憑證儲存的拇指印,或 Azure Key Vault 的金鑰識別碼 URL)。

allowEnclaveComputations
Boolean

表示欄位主鍵是否支援接地運算。 這個值必須與簽章產生時傳遞 SignColumnMasterKeyMetadata(String, Boolean) 到的值相符。

signature
Byte[]

驗證簽名,先前由 SignColumnMasterKeyMetadata(String, Boolean)返回。 此格式依提供者而異。

傳回

當在導出類別中實作時,該方法預期會回傳 true 指定的簽章是否有效,或 false 是該簽章無效。 預設實作會拋 NotImplementedException出 。

適用於