I want to use my own TrustManager, i.e., X509TrustManager
for checkServerTrusted
method. Also, I need to do custom host name verification. I can see that in sslContextBuilder, it takes TrustManagerFactory. Here I want to pass my custom TrustManagerFactory.
Also, please suggest, how do I do custom hostname verification here.