getHostNameInCertificate Method (SQLServerDataSource)
Returns the host name used in validating the SQL Server Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), certificate.
Syntax
public java.lang.String getHostNameInCertificate()
Return Value
A String that contains the host name, or null if no value is set.
Remarks
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.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for