I have given up trying to use the RIM provided TLS library to get STARTTLS to work, and finally accepted that I need to use Bouncy Castle*. I have integrated bouncy castle with the code, and built it with the RIM compiler, all of which happened without an issue.
The implementation of STARTTLS is very straight forward and switching an existing socket connection to a TLS connection is literally three lines of code.
I need to cut down the size of the bouncy castle library as it is currently three times the size of the tiggit application.
I am expecting that STARTTLS will be included in release 1.1.12, along with the ability for tiggit to automatically use STARTTLS if it is available from the server. Version 1.1.12 is a little way off though.
* Bouncy Castle is an open source java encryption library created by The Legion of The Bouncy Castle. More information can be found on their website http://www.bouncycastle.org
