I am developing an application in Android which consumes OData services provided by SAP NetWeaver gateway, I am using Odata4J library for consuming services.
ODataConsumer consumer = ODataConsumers
.create("https://sapes1.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/");
when I am hitting this URL from web browser, it prompts "Authentication Required" dialog box where I have to enter my username and password and after that I can see service document, schema document etc.
My question is: how can I pass credentials with my request using Odata4J? Do I receive any kind of token after successful authentication for authenticating further requests?