com.github.eliux.mega.cmd.MegaCmdChangePassword Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of megacmd4j Show documentation
Show all versions of megacmd4j Show documentation
Java client library that works on top of MEGAcmd to provide access to the services of Mega.nz
package com.github.eliux.mega.cmd;
public class MegaCmdChangePassword extends AbstractMegaCmdRunnerWithParams {
private final String oldPassword;
private final String newPassword;
public MegaCmdChangePassword(String oldPassword, String newPassword) {
this.oldPassword = oldPassword;
this.newPassword = newPassword;
}
@Override
String cmdParams() {
return oldPassword + " " + newPassword;
}
@Override
public String getCmd() {
return "passwd";
}
public String getOldPassword() {
return oldPassword;
}
public String getNewPassword() {
return newPassword;
}
}