How to convert password protected HTML content
Last updated
Last updated
If a HTML code is pointing to a protected resource (for example: where lamp.gif is a password protected image on the www.swingsoftware.com server), then in order to render such content to PDF, your Java policy document should be modified to allow password authentication from Lotus Notes.
In order to modify your Java policy document follow these steps:
1. Open Java policy document in your text editor.
The document path for a local installation is\Notes\jvm\lib\security\java.policy
The document path for a server installation is\Domino\jvm\lib\security\java.policy
2. In java.policy document locate the grant section and add below two lines:
permission java.net.NetPermission "setDefaultAuthenticator";
permission java.net.NetPermission "requestPasswordAuthentication";
The java.policy document should now appear as in the below image:
3. User authentication is performed using LotusScript and Java API. Here is a code example for authenticating the user using LotusScript: