forked from microsoft/mssql-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSQLServerStatementColumnEncryptionSetting.java
37 lines (32 loc) · 1.34 KB
/
SQLServerStatementColumnEncryptionSetting.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Microsoft JDBC Driver for SQL Server
*
* Copyright(c) Microsoft Corporation All rights reserved.
*
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc;
/**
* Specifies how data will be sent and received when reading and writing encrypted columns. Depending on your specific query, performance impact may
* be reduced by bypassing the Always Encrypted driver processing when non-encrypted columns are being used. Note that these settings cannot be used
* to bypass encryption and gain access to plaintext data.
*/
public enum SQLServerStatementColumnEncryptionSetting {
/*
* if "Column Encryption Setting=Enabled" in the connection string, use Enabled. Otherwise, maps to Disabled.
*/
UseConnectionSetting,
/*
* Enables TCE for the command. Overrides the connection level setting for this command.
*/
Enabled,
/*
* Parameters will not be encrypted, only the ResultSet will be decrypted. This is an optimization for queries that do not pass any encrypted
* input parameters. Overrides the connection level setting for this command.
*/
ResultSetOnly,
/*
* Disables TCE for the command.Overrides the connection level setting for this command.
*/
Disabled,
}