X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=legacy%2Forg.argeo.slc.support%2Fsrc%2Forg%2Fargeo%2Fslc%2Fjsch%2FSshTarget.java;fp=legacy%2Forg.argeo.slc.support%2Fsrc%2Forg%2Fargeo%2Fslc%2Fjsch%2FSshTarget.java;h=0000000000000000000000000000000000000000;hb=6227518f97c4697d83637eea4c76047235101491;hp=f328f8fbe8f21f7ab968789d97a6d02fa6458c31;hpb=71ffb72c41c6a53d5fdccf3925a9c7a68046ee80;p=gpl%2Fargeo-slc.git diff --git a/legacy/org.argeo.slc.support/src/org/argeo/slc/jsch/SshTarget.java b/legacy/org.argeo.slc.support/src/org/argeo/slc/jsch/SshTarget.java deleted file mode 100644 index f328f8fbe..000000000 --- a/legacy/org.argeo.slc.support/src/org/argeo/slc/jsch/SshTarget.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.argeo.slc.jsch; - -import java.io.File; - -import com.jcraft.jsch.Session; -import com.jcraft.jsch.UserInfo; - -public class SshTarget { - private String host; - private Integer port = 22; - private String user; - private UserInfo userInfo = new SimpleUserInfo(); - - private Boolean usePrivateKey = true; - private File localPrivateKey = new File(System.getProperty("user.home") - + File.separator + ".ssh" + File.separator + "id_rsa"); - - /** cached session */ - private transient Session session; - - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } - - public UserInfo getUserInfo() { - return userInfo; - } - - public void setUserInfo(UserInfo userInfo) { - this.userInfo = userInfo; - } - - public void setLocalPrivateKey(File localPrivateKey) { - this.localPrivateKey = localPrivateKey; - } - - public File getLocalPrivateKey() { - return localPrivateKey; - } - - public Boolean getUsePrivateKey() { - return usePrivateKey; - } - - public void setUsePrivateKey(Boolean usePrivateKey) { - this.usePrivateKey = usePrivateKey; - } - - public String toString() { - return getUser() + "@" + getHost() + ":" + getPort(); - } - - public synchronized Session getSession() { - return session; - } - - public synchronized void setSession(Session session) { - this.session = session; - } -}