Here is a sample code I am referring to. https://sites.google.com/site/ssljavaguide/example-code/2-way-ssl
Can I not set the keystore-related properties and wait for some exception to be thrown and then depending upon the occurrence of exception decide whether it is a 1-way or 2-way ssl connection?
Apologies if the question seems stupid.