Posted: August 15, 2012 15:43 by thking
I am currently using Javamail to connect to an IMAP server. For this I have set some properties such as mail.imap.starttls.enable to true. So, if I connect to an IMAP server that is capable of STARTTLS the connection will be encrypted. Unfortunately, the API does not provide any easy to use call to detect if a connection is encrypted or not.
Based on this I have two questions:
1. Do I miss an API call that tells me if the underlying connection of a (IMAP)Store is encrypted?
2. Would it make sense to enhance the Javamail API so that developers can easily learn if a underlying connection of a (IMAP)Store is encrypted? For me it makes sense to show to users of my application whether or not the connection is encrypted.
I am looking forward to read your comments on this.