I'm having hp printer on LAN network.
From Java code, I have successfully done with the creating a printing job and send it to printer.
Now, printer is asking for username and password for authentication before processing the printing job.

I need to set and send the username/password in my java code while sending printing job to printer so it'll not need me for authentication.

To create the print job, I have used javax.print package but found it fail for my requirement.

Any help will be appreciated.

Namrata Shah