Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 2.22 KB

File metadata and controls

43 lines (33 loc) · 2.22 KB
title getEncrypt Method (SQLServerDataSource) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
getEncrypt Method (SQLServerDataSource)
apilocation
getEncrypt Method (SQLServerDataSource)
apitype Assembly
ms.assetid 1cdb12dd-6e6f-4bbd-8f5f-9e630f3ee2c9
author David-Engel
ms.author v-daenge

getEncrypt Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns a Boolean value that indicates if the encrypt property is enabled.

Syntax

  
public boolean getEncypt()  

Return Value

true if encrypt is enabled. Otherwise, false.

Remarks

If the encrypt property is set to true, the [!INCLUDEjdbcNoVersion] ensures that [!INCLUDEssNoVersion] uses TLS encryption for all data sent between the client and the server if the server has a certificate installed.

If the encrypt property is unspecified or set to false, the driver will not enforce the [!INCLUDEssNoVersion] to support TLS encryption. If the [!INCLUDEssNoVersion] instance is not configured to force the TLS encryption, a connection is established without any encryption. If the [!INCLUDEssNoVersion] instance is configured to force the TLS encryption, the [!INCLUDEjdbcNoVersion] will automatically enable TLS encryption when running on properly configured Java Virtual Machine (JVM), or else the connection is terminated and the driver will raise an error. If the encryption property is not set, the getEncrypt method returns the default value of false.

See Also

SQLServerDataSource Members
SQLServerDataSource Class