fix: remaining references to obsolete sun.misc.Base64Encoder
This commit is contained in:
parent
523d806b56
commit
a5bc33db70
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue