com.alogic.terminal.sshj.Authenticator Maven / Gradle / Ivy
package com.alogic.terminal.sshj;
import com.anysoft.util.Factory;
import net.schmizz.sshj.SSHClient;
import java.io.IOException;
/**
* sshj模式下的验证器实现
*/
public interface Authenticator {
public boolean authenticate(SSHClient sshClient) throws IOException;
/**
* 工厂类
*/
public static class TheFactory extends Factory {
@Override
public String getClassName(String module) {
if (module.indexOf('.') < 0){
return "com.alogic.terminal.sshj.auth." + module;
}
return module;
}
}
}