SqlColumnEncryptionEnclaveProvider.GetEnclaveSession(String, String, SqlEnclaveSession, Int64) 方法

定義

當在衍生類別中覆寫時,查詢 enclave 工作階段快取中的現有 enclave 工作階段資訊。When overridden in a derived class, looks up an existing enclave session information in the enclave session cache. 如果 enclave 提供者不實作 enclave 工作階段快取,則此方法應在 sqlEnclaveSession 參數中傳回 nullIf the enclave provider doesn't implement enclave session caching, this method is expected to return null in the sqlEnclaveSession parameter.

public:
 abstract void GetEnclaveSession(System::String ^ serverName, System::String ^ attestationUrl, [Runtime::InteropServices::Out] System::Data::SqlClient::SqlEnclaveSession ^ % sqlEnclaveSession, [Runtime::InteropServices::Out] long % counter);
public abstract void GetEnclaveSession (string serverName, string attestationUrl, out System.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter);
abstract member GetEnclaveSession : string * string * SqlEnclaveSession * int64 -> unit
Public MustOverride Sub GetEnclaveSession (serverName As String, attestationUrl As String, ByRef sqlEnclaveSession As SqlEnclaveSession, ByRef counter As Long)

參數

serverName
String

包含 enclave 的 SQL Server 執行個體名稱。The name of the SQL Server instance containing the enclave.

attestationUrl
String

證明服務的端點,SqlClient 會與該端點連線以證明 enclave。The endpoint of an attestation service, SqlClient contacts to attest the enclave.

sqlEnclaveSession
SqlEnclaveSession

當此方法傳回時,傳回要求的 enclave 工作階段,如果提供者不實作工作階段快取,則傳回 nullWhen this method returns, the requested enclave session or null if the provider doesn't implement session caching. 這個參數會被視為未初始化。This parameter is treated as uninitialized.

counter
Int64

enclave 提供者在每次 SqlClient 從快取中擷取工作階段時應遞增的計數器。A counter that the enclave provider is expected to increment each time SqlClient retrieves the session from the cache. 這個欄位的目的在於防止重新執行攻擊。The purpose of this field is to prevent replay attacks.

適用於