Package org.mariadb.jdbc.client.tls
Class HostnameVerifier
java.lang.Object
org.mariadb.jdbc.client.tls.HostnameVerifier
SSL host verification
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheck if ip correspond to IPV4static booleancheck if ip correspond to IPV6static voidverify(String host, X509Certificate cert, long serverThreadId) Verification that throw an exception with a detailed error message in case of error.
-
Constructor Details
-
HostnameVerifier
public HostnameVerifier()
-
-
Method Details
-
isIPv4
check if ip correspond to IPV4- Parameters:
ip- ip value- Returns:
- if ip is using IPV4 format
-
isIPv6
check if ip correspond to IPV6- Parameters:
ip- ip value- Returns:
- if ip is using IPV6 format
-
verify
public static 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
-