com.github.eliux.mega.auth.MegaAuthFolder 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.auth;
import com.github.eliux.mega.MegaSession;
import com.github.eliux.mega.cmd.MegaCmdLogin;
public class MegaAuthFolder extends MegaAuth {
private final String folderPath;
public MegaAuthFolder(String folderPath) {
this.folderPath = folderPath;
}
public String getFolderPath() {
return folderPath;
}
@Override
public MegaSession login() {
final MegaCmdLogin megaCmdLogin = new MegaCmdLogin(folderPath);
megaCmdLogin.run();
return new MegaSession(this);
}
}