Actually i am trying to sync all my data to my salesforce Account. And i have used batching code to do sync:- http://blogs.developerforce.com/engineering/2010/06/retrieving-all-records-with-errors-from-a-bulk-api-job.html
I used this type of code. And used RestConnection, so i have to fetch logined user "password". i couldn't able to do. please anyone suggest me. I am using default salesforce login page for user login.