Freigeben über


getTrustServerCertificate Method (SQLServerDataSource)

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

public boolean getTrustServerCertificate()

Rückgabewert

true if trustServerCertificate is enabled. Otherwise, false.

Hinweise

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 SQL Server 2005 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 2005 JDBC Driver will validate the server SSL certificate.

Siehe auch

Verweis

SQLServerDataSource Class

Konzepte

SQLServerDataSource Methods
SQLServerDataSource Members