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 int
CONNECTION_INACTIVITY_TIMEOUT
private static int
MAX_CONCURRENT_OPENERS
private static int
MAX_SESSIONS_PER_CONNECTION
private com.trilead.ssh2.auth.AgentProxy
myAgentProxy
private java.util.List<SshConnection>
myConnections
private int
myConnectTimeout
private java.lang.String
myHost
private com.trilead.ssh2.ServerHostKeyVerifier
myHostVerifier
private boolean
myIsDisposed
private boolean
myIsLocked
private java.lang.Object
myOpenerLock
private int
myOpenersCount
private char[]
myPassphrase
private char[]
myPassword
private int
myPort
private char[]
myPrivateKey
private int
myReadTimeout
private java.lang.String
myUserName
-
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 void
addOpener()
java.lang.String
getKey()
boolean
isDisposed()
(package private) void
lock()
private SshConnection
openConnection()
SshSession
openSession()
boolean
purge()
private void
removeOpener()
void
setConnectionTimeout(int timeout)
void
setCredentials(java.lang.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)
java.lang.String
toString()
(package private) void
unlock()
private SshSession
useExistingConnection()
-
-
-
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:
toString
in classjava.lang.Object
-
-