Hi Fabio & Guillame,
It was fairly simple after all. J
My bad that I confused XWiki authorization with tomcat basic authorization
which we would configure in the tomcat-users.xml.
Also, if I am not wrong, I could set the host, port to null & authscope to
"ANY_REALM" in the following snippet (apache httpclient authentication
methods):
Credentials defaultcreds = new UsernamePasswordCredentials("username",
"password");
client.getState().setCredentials(new AuthScope("myhost", 80,
AuthScope.ANY_REALM), defaultcreds);
As always, thank you for your detailed & timely response Fabio & Guillame.
Regards,
Dilipkumar Jadhav