Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.75 KB

gettrustservercertificate-method-sqlserverdatasource.md

File metadata and controls

38 lines (28 loc) · 1.75 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
getTrustServerCertificate Method (SQLServerDataSource)
getTrustServerCertificate Method (SQLServerDataSource)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
getTrustServerCertificate Method (SQLServerDataSource)
getTrustServerCertificate Method (SQLServerDataSource)
Assembly

getTrustServerCertificate Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public boolean getTrustServerCertificate()  

Return Value

true if trustServerCertificate is enabled. Otherwise, false.

Remarks

If the trustServerCertificate property is set to true, the [!INCLUDEssNoVersion] Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate is automatically trusted when the communication layer is encrypted using TLS. In other words, the [!INCLUDEjdbcNoVersion] will not validate the [!INCLUDEssNoVersion] TLS/SSL certificate. The default value is false.

If the trustServerCertificate property is set to false, the [!INCLUDEjdbcNoVersion] will validate the server TLS/SSL certificate.

See Also

SQLServerDataSource Members
SQLServerDataSource Class