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

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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy