Edit

Share via


SqlColumnEncryptionEnclaveProvider.GetEnclaveSession Method

Definition

When overridden in a derived class, looks up an existing enclave session information in the enclave session cache. If 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)

Parameters

serverName
String

The name of the SQL Server instance containing the enclave.

attestationUrl
String

The endpoint of an attestation service, SqlClient contacts to attest the enclave.

sqlEnclaveSession
SqlEnclaveSession

When 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

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.

Applies to