getTrustServerCertificate Method (SQLServerDataSource)

DownloadDownload JDBC Driver

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 SQL Server Secure Sockets Layer (SSL) certificate is automatically trusted when the communication layer is encrypted using SSL. In other words, the Microsoft JDBC Driver for SQL Server will not validate the SQL Server SSL certificate. The default value is false.

If the trustServerCertificate property is set to false, the Microsoft JDBC Driver for SQL Server will validate the server SSL certificate.

See Also

SQLServerDataSource Members
SQLServerDataSource Class