다음을 통해 공유


setTrustServerCertificate Method (SQLServerDataSource)

Sets a boolean value that indicates if the trustServerCertificate property is enabled.

public void setTrustServerCertificate(boolean trustServerCertificate)

매개 변수

trustServerCertificate

true if the server Secure Sockets Layer (SSL) certificate should be automatically trusted when the communication layer is encrypted using SSL. Otherwise, false.

주의

If the trustServerCertificate property is set to true, the SQL Server SSL certificate is automatically trusted when the communication layer is encrypted using SSL. In other words, the Microsoft SQL Server JDBC Driver will not validate the SQL Server SSL certificate. The default value is false.

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

참고

참조

SQLServerDataSource Class

개념

SQLServerDataSource Methods
SQLServerDataSource Members