• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a SSLSocket on midp ??

 
Van Vu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writting a midlet that need a SSLSocket to connect to a server. I am looking for a method or a framework that provide the SSLSocket connection in J2me. Anyone can help me, please.

Thank you in advance.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, MIDP provides support for it through
SecureConnection instances. Check the MIDP javadocs.


Google for "MIDP SecureConnection" to find more info also.
[ October 19, 2006: Message edited by: Eduardo Marques ]
 
Van Vu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply. Actually, I am looking for the class in j2me which behaves like the SSLSocket in javax.net.ssl.SSLSocket, which I can set the TrustManagerFactory to SunX509 and the KeyStore to sth like JKS.

I would appreciate any helps.

Thank you very much in advance.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt you will find it ... networking in J2ME is done through the General Connection Framework , aka javax.microedition.io package
(read CLDC/MIDP specs).
There is no java.net and SecureConnection should be the closest match to
what you need.

Regards
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I googled up this now ... the SATSA2 API.
Apparently you can use X.509 over SecureConnection using this API

http://developers.sun.com/techtopics/mobility/apis/articles/satsa2/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic