getEncrypt Method (SQLServerDataSource)
Returns a boolean value that indicates if the encrypt property is enabled.
public boolean getEncypt()
true if encrypt is enabled. Otherwise, false.
If the encrypt property is set to true, the Microsoft SQL Server 2005 JDBC Driver ensures that SQL Server uses SSL encryption for all data sent between the client and the server if the server has a certificate installed.
If the encrypt property is unspecified or set to false, the driver will not enforce the SQL Server to support SSL encryption. If the SQL Server instance is not configured to force the SSL encryption, a connection is established without any encryption. If the SQL Server instance is configured to force the SSL encryption, the Microsoft SQL Server 2005 JDBC Driver will automatically enable SSL encryption when running on properly configured Java Virtual Machine (JVM), or else the connection is terminated and the driver will raise an error. If the encryption property is not set, the getEncrypt method returns the default value of false.