I have created my own trust manager to verify the SSL certificates. using this link : https://stackoverflow.com/a/19005844/18439323
From this implementation, I am able to create the httpclient instance with SSLContext. However I am not sure if the certificates are validated properly and checkClientTrusted, checkServerTrusted methods are actually called.
I tried adding the loggers inside these methods(checkClientTrusted, checkServerTrusted) but logs are not captured in the log file, I want to understand how these methods are used by Java to validate
Is there any documentation available to understand how internally java validates the certificates and calls checkClientTrusted, checkServerTrusted methods?