getTrustServerCertificate Method (SQLServerDataSource)
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 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 Microsoft JDBC Driver for SQL Server will not validate the SQL Server TLS/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 TLS/SSL certificate.
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho