mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 09:35:39 -05:00
Enable Always Encrypted enclave connection parameters (#919)
* Enable the enclave connection parameters. * Update the switch statement to use the enum constants for EnclaveAttestationProtocol * Update verbiage for Always Encrypted connection options * Update the argument exception to chose one specific to this connection option * Add resource logic to resource files. * Add error checking for when enclave parameters are added and Always Encrypted is set to disabled. * Add/Update unit tests
This commit is contained in:
@@ -115,6 +115,38 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for Attestation Protocol.
|
||||
/// </summary>
|
||||
public string EnclaveAttestationProtocol
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetOptionValue<string>("attestationProtocol");
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
SetOptionValue("attestationProtocol", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the enclave attestation Url to be used with enclave based Always Encrypted.
|
||||
/// </summary>
|
||||
public string EnclaveAttestationUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return GetOptionValue<string>("enclaveAttestationUrl");
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
SetOptionValue("enclaveAttestationUrl", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user