public class SshHost extends Object
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
boolean |
isDisposed() |
SshSession |
openSession() |
boolean |
purge() |
void |
setConnectionTimeout(int timeout) |
void |
setCredentials(String userName,
char[] key,
char[] passphrase,
char[] password,
com.trilead.ssh2.auth.AgentProxy agentProxy) |
void |
setDisposed(boolean disposed) |
void |
setHostVerifier(com.trilead.ssh2.ServerHostKeyVerifier verifier) |
void |
setReadTimeout(int readTimeout) |
String |
toString() |
public SshHost(String host, int port)
public void setHostVerifier(com.trilead.ssh2.ServerHostKeyVerifier verifier)
public void setConnectionTimeout(int timeout)
public void setReadTimeout(int readTimeout)
public void setCredentials(String userName, char[] key, char[] passphrase, char[] password, com.trilead.ssh2.auth.AgentProxy agentProxy)
public boolean purge()
public boolean isDisposed()
public void setDisposed(boolean disposed)
public String getKey()
public SshSession openSession() throws IOException
IOException
Copyright © 2019. All rights reserved.