I am consuming Twitter's REST APIs on Android to get a user's status timeline and for updating a user status. I am using Apache's HTTPClient class for this that is bundled with Android SDK. The user enters his/her credentials and I am saving it in String variables.
Everytime I need to invoke an API that require authentication, I pass these Credentials to my HTTPClient and create appropriate HTTP POST and GET requests as required.
I have a few questions about this approach:
For methods that require Authentication, I am setting userName and password in the fields of Credentials class. Does the HTTPClient class include this data in an HTTP "Authorization" header? Is this an example of Basic Authorization?
It was said that Twitter would be deprecating the use of Basic Authentication in June 2010. How would that affect my code? Will it break? Will passing userName and password in Credentials not work post June?
Thanks.