Class SshHost
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.svn.ssh.SshHost
-
public class SshHost extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intCONNECTION_INACTIVITY_TIMEOUTprivate static intMAX_CONCURRENT_OPENERSprivate static intMAX_SESSIONS_PER_CONNECTIONprivate com.trilead.ssh2.auth.AgentProxymyAgentProxyprivate java.util.List<SshConnection>myConnectionsprivate intmyConnectTimeoutprivate java.lang.StringmyHostprivate com.trilead.ssh2.ServerHostKeyVerifiermyHostVerifierprivate booleanmyIsDisposedprivate booleanmyIsLockedprivate java.lang.ObjectmyOpenerLockprivate intmyOpenersCountprivate char[]myPassphraseprivate char[]myPasswordprivate intmyPortprivate char[]myPrivateKeyprivate intmyReadTimeoutprivate java.lang.StringmyUserName
-
Constructor Summary
Constructors Constructor Description SshHost(java.lang.String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddOpener()java.lang.StringgetKey()booleanisDisposed()(package private) voidlock()private SshConnectionopenConnection()SshSessionopenSession()booleanpurge()private voidremoveOpener()voidsetConnectionTimeout(int timeout)voidsetCredentials(java.lang.String userName, char[] key, char[] passphrase, char[] password, com.trilead.ssh2.auth.AgentProxy agentProxy)voidsetDisposed(boolean disposed)voidsetHostVerifier(com.trilead.ssh2.ServerHostKeyVerifier verifier)voidsetReadTimeout(int readTimeout)java.lang.StringtoString()(package private) voidunlock()private SshSessionuseExistingConnection()
-
-
-
Field Detail
-
CONNECTION_INACTIVITY_TIMEOUT
private static final int CONNECTION_INACTIVITY_TIMEOUT
-
MAX_CONCURRENT_OPENERS
private static final int MAX_CONCURRENT_OPENERS
-
MAX_SESSIONS_PER_CONNECTION
private static final int MAX_SESSIONS_PER_CONNECTION
-
myHost
private java.lang.String myHost
-
myPort
private int myPort
-
myHostVerifier
private com.trilead.ssh2.ServerHostKeyVerifier myHostVerifier
-
myPrivateKey
private char[] myPrivateKey
-
myPassphrase
private char[] myPassphrase
-
myPassword
private char[] myPassword
-
myUserName
private java.lang.String myUserName
-
myAgentProxy
private com.trilead.ssh2.auth.AgentProxy myAgentProxy
-
myConnectTimeout
private int myConnectTimeout
-
myIsLocked
private boolean myIsLocked
-
myIsDisposed
private boolean myIsDisposed
-
myConnections
private java.util.List<SshConnection> myConnections
-
myOpenerLock
private java.lang.Object myOpenerLock
-
myOpenersCount
private int myOpenersCount
-
myReadTimeout
private int myReadTimeout
-
-
Method Detail
-
setHostVerifier
public void setHostVerifier(com.trilead.ssh2.ServerHostKeyVerifier verifier)
-
setConnectionTimeout
public void setConnectionTimeout(int timeout)
-
setReadTimeout
public void setReadTimeout(int readTimeout)
-
setCredentials
public void setCredentials(java.lang.String userName, char[] key, char[] passphrase, char[] password, com.trilead.ssh2.auth.AgentProxy agentProxy)
-
purge
public boolean purge()
-
isDisposed
public boolean isDisposed()
-
setDisposed
public void setDisposed(boolean disposed)
-
getKey
public java.lang.String getKey()
-
lock
void lock()
-
unlock
void unlock()
-
openSession
public SshSession openSession() throws java.io.IOException
- Throws:
java.io.IOException
-
useExistingConnection
private SshSession useExistingConnection() throws java.io.IOException
- Throws:
java.io.IOException
-
removeOpener
private void removeOpener()
-
addOpener
private void addOpener()
-
openConnection
private SshConnection openConnection() throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-