public boolean authenticate(String username, String password) throws ClientProtocolException, IOException, InvalidParameterException
{
if(username != null && password!= null)
{
HttpClient tempClient = new HttpClient(username, password);
tempClient.POST(_locator.loginUri(), null);
for(Cookie c : tempClient.getCookieStore().getCookies())
{
if(c.getName().equals("sessionid"));
_authToken = c.getValue().toString();
}
return _authToken != null;