Diving into Funambol

In order to understand Sync4J (also named Funambol), there are many hooks to use. First of all, the funambol data service server developer book to understand the architecture. After reading this paper, I needed to completely dive into Sync4J code. Hopefully, they provide an email connector to have an example.

From now and in the following Sync4J posts, I'll write some notes about Sync4J development and difficulties I've met.

  • First problem was to find how to get the credentials specified in the SyncML specs to authenticate on the JCR. Here is an interesting piece of code inspired from the email connector source:

String username = ((Sync4jPrincipal)principal).getUsername();
String credentials = ((Sync4jPrincipal)principal).getEncodedCredentials();
String password = Helper.getPassword(username, credentials);

The credentials are formatted in the following way: "username:password" and encrypted. To decrypt, there is only to use the Base64.decode() method. The login to the repository will be done during the synchronization initialisation (beginSync())

  • An other point to think about is to create a testing framework in order to test the connection between Sync4J and a JackRabbit implementation of JCR.

Important announcement: Join the Nuxeo team and contribute to the Nuxeo project! We have open positions in France and the UK for open source Java EE developers and sales engineers, both junior and senior.

Like this post? Share it:


Trackback Pings

Trackback URL for this entry:
http://blogs.nuxeo.com/sections/blogs/cedric_bosdonnat/2006_04_10_diving-into-funambol/tbping
Posted by Cedric Bosdonnat @ 04/10/2006 08:13 PM. - Categories: apogee -  0 comments

Nuxeo Bloggers: Log in!
Nuxeo - Indesko - Nuxeo 5 Project
All content is copyrighted by their author.
CPSSkins is Copyright © 2003-2006 by Jean-Marc Orliaguet. | CPS is Copyright © 2002-2006 by Nuxeo SAS.