I have a Java application running on the web through a Webswing server. A Webswing server translates Java to HTML5 for secure web usage.
I use netscape.javascript.JSObject to store and read cookies from the Java application.
// write
String cookie = "name=userstuff; Expires.... ";
JSObject global = JSObject.getWindow(null);
global.eval("document.cookie=" + "\"" + cookie + "\"");
//read
Object cookies= global.eval("document.cookie");
I have not found a way to store passwords in the browser password section. In Chrome the section is:
chrome://settings/passwords
Could you tell me if the mechanisms to store passwords in the passwords section is the same as the one for cookies.