All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.eliux.mega.cmd.MegaCmdChangePassword Maven / Gradle / Ivy

Go to download

Java client library that works on top of MEGAcmd to provide access to the services of Mega.nz

There is a newer version: 1.6.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy