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

@ -123,11 +123,11 @@ jala.XmlRpcRequest = function(url, methodName) {
* @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;
};
/**
* Returns the credentials of this request
* @returns The base46 encoded credentials of this request