setHostNameInCertificate Method (SQLServerDataSource)
Sets the host name to be used in validating the SQL Server Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate.
Syntax
public void setHostNameInCertificate(java.lang.String hostNameInCertificate)
Parameters
hostNameInCertificate
A String that contains the host name.
Remarks
The hostNameInCertificate value is used to validate the SQL Server TLS/SSL certificate when the communication layer is encrypted by using TLS. The default value is null.
If the hostNameInCertificate property is set to null or unspecified, the Microsoft JDBC Driver for SQL Server will use the serverName property value to validate against the SQL Server TLS/SSL certificate. If the hostNameInCertificate property is set to a string or an empty string "", the driver will use that value to validate the server TLS/SSL certificate.
See Also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tokom 2024. godine postepeno ćemo ukidati probleme sa uslugom GitHub kao mehanizam povratnih informacija za sadržaj i zameniti ga novim sistemom povratnih informacija. Dodatne informacije potražite u članku:Prosledite i prikažite povratne informacije za