Class HostnameVerifierImpl
java.lang.Object
org.mariadb.jdbc.internal.protocol.tls.HostnameVerifierImpl
- All Implemented Interfaces:
HostnameVerifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidverify(String host, X509Certificate cert, long serverThreadId) Verification that throw an exception with a detailed error message in case of error.booleanverify(String host, SSLSession session) booleanverify(String host, SSLSession session, long serverThreadId) Verification, like HostnameVerifier.verify() with an additional server thread id to identify connection in logs.
-
Constructor Details
-
HostnameVerifierImpl
public HostnameVerifierImpl()
-
-
Method Details
-
verify
- Specified by:
verifyin interfaceHostnameVerifier
-
verify
Verification, like HostnameVerifier.verify() with an additional server thread id to identify connection in logs.- Parameters:
host- host to connect (DNS/IP)session- SSL sessionserverThreadId- connection id to identify connection in logs- Returns:
- true if valid
-
verify
Verification that throw an exception with a detailed error message in case of error.- Parameters:
host- hostnamecert- certificateserverThreadId- server thread Identifier to identify connection in logs- Throws:
SSLException- exception
-