title: How to get the key exchange and authentication protocol in Java
body: <p>I am aware of the the method <code>.getPublicKey()</code> that returns the Public key type. But, this function does not tell what type of key exchange used (EDH or RSA). If I'm right, it only return the type of the public key. My question is: How can I get the key exchange and authentication protocols used when I initiate SSL connection with a remote server ? </p>