title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | apilocation | apiname | apitype |
---|---|---|---|---|---|---|---|---|---|---|
getHostNameInCertificate Method (SQLServerDataSource) |
getHostNameInCertificate Method (SQLServerDataSource) |
David-Engel |
davidengel |
01/19/2017 |
sql |
connectivity |
reference |
getHostNameInCertificate Method (SQLServerDataSource) |
getHostNameInCertificate Method (SQLServerDataSource) |
Assembly |
[!INCLUDEDriver_JDBC_Download]
Returns the host name used in validating the SQL Server Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate.
public java.lang.String getHostNameInCertificate()
A String that contains the host name, or null if no value is set.
The host name is used to validate the SQL Server TLS/SSL certificate value when the communication layer is encrypted using TLS/SSL.
If the host name is not set, the getHostNameInCertificate method returns null.