SqlColumnEncryptionEnclaveProvider.CreateEnclaveSession 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在派生類別中覆寫時,會執行隔壁證明,產生會話的對稱金鑰,建立一個接地會話,並將會話資訊儲存在快取中。
public:
abstract void CreateEnclaveSession(cli::array <System::Byte> ^ enclaveAttestationInfo, System::Security::Cryptography::ECDiffieHellmanCng ^ clientDiffieHellmanKey, System::String ^ attestationUrl, System::String ^ servername, [Runtime::InteropServices::Out] System::Data::SqlClient::SqlEnclaveSession ^ % sqlEnclaveSession, [Runtime::InteropServices::Out] long % counter);
public abstract void CreateEnclaveSession(byte[] enclaveAttestationInfo, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey, string attestationUrl, string servername, out System.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter);
abstract member CreateEnclaveSession : byte[] * System.Security.Cryptography.ECDiffieHellmanCng * string * string * SqlEnclaveSession * int64 -> unit
Public MustOverride Sub CreateEnclaveSession (enclaveAttestationInfo As Byte(), clientDiffieHellmanKey As ECDiffieHellmanCng, attestationUrl As String, servername As String, ByRef sqlEnclaveSession As SqlEnclaveSession, ByRef counter As Long)
參數
- enclaveAttestationInfo
- Byte[]
提供者用來證明隔區並產生會話對稱金鑰的資訊。 此資訊格式依據飛地證明協議而定。
- clientDiffieHellmanKey
- ECDiffieHellmanCng
一個 Diffie-Hellman 演算法物件,封裝用戶端金鑰對。
- attestationUrl
- String
認證服務的端點,用於認證飛區。
- servername
- String
包含該 enclave 的 SQL Server 實例名稱。
- sqlEnclaveSession
- SqlEnclaveSession
請求的 enclave session 或 null 是提供者未實作 session caching。
- counter
- Int64
一個計數器,隔壁提供者預期每次 SqlClient 從快取中取得會話時會增加。 此場的目的是防止重播攻擊。