Class HostnameVerifierImpl
- java.lang.Object
-
- org.mariadb.jdbc.internal.protocol.tls.HostnameVerifierImpl
-
- All Implemented Interfaces:
HostnameVerifier
public class HostnameVerifierImpl extends Object implements HostnameVerifier
-
-
Constructor Summary
Constructors Constructor Description HostnameVerifierImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidverify(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.
-
-
-
Method Detail
-
verify
public boolean verify(String host, SSLSession session)
- Specified by:
verifyin interfaceHostnameVerifier
-
verify
public boolean verify(String host, SSLSession session, long serverThreadId)
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
public void verify(String host, X509Certificate cert, long serverThreadId) throws SSLException
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
-
-