fix: remaining references to obsolete sun.misc.Base64Encoder

This commit is contained in:
Tobi Schäfer 2020-04-10 20:24:33 +02:00
parent 523d806b56
commit a5bc33db70
3 changed files with 9 additions and 9 deletions

View file

@ -159,8 +159,8 @@ helma.Http = function() {
* @param {String} password The password
*/
this.setCredentials = function(username, password) {
var str = new java.lang.String(username + ":" + password);
credentials = (new Packages.sun.misc.BASE64Encoder()).encode(str.getBytes());
var str = username + ":" + password;
credentials = str.enbase64();
return;
}