- getAssignedLocalPort() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the local port currently bound to.
- getCauses() - Method in exception com.pastdev.jsch.MultiCloseException
-
- getConnection() - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- getConnection(String, String) - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- getCurrentInputStream() - Method in class com.pastdev.jsch.scp.ScpConnection
-
- getCurrentOuputStream() - Method in class com.pastdev.jsch.scp.ScpConnection
-
- getDestinationHostname() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the hostname of the destination.
- getDestinationPort() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the port of the destination.
- getErrStream() - Method in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
Returns the STDERR stream for you to read from.
- getExitCode() - Method in class com.pastdev.jsch.command.CommandRunner.ExecuteResult
-
Returns the exit code of the command execution.
- getHostname() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- getHostname() - Method in interface com.pastdev.jsch.SessionFactory
-
Returns the hostname that sessions built by this factory will connect to.
- getInputStream() - Method in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
Returns the STDOUT stream for you to read from.
- getInputStream() - Method in class com.pastdev.jsch.proxy.SshProxy
-
- getInputStream() - Method in class com.pastdev.jsch.scp.ScpFile
-
- getLocalAlias() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the local alias bound to.
- getLocalPort() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the port this tunnel was configured with.
- getLoginTimeout() - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- getLogWriter() - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- getMode() - Method in class com.pastdev.jsch.scp.ScpEntry
-
- getMode() - Method in class com.pastdev.jsch.scp.ScpFileInputStream
-
- getName() - Method in class com.pastdev.jsch.scp.ScpEntry
-
- getName() - Method in class com.pastdev.jsch.scp.ScpFileInputStream
-
- getNextEntry() - Method in class com.pastdev.jsch.scp.ScpConnection
-
- getNextEntry() - Method in class com.pastdev.jsch.scp.ScpInputStream
-
- getOutputStream() - Method in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
Returns the STDIN stream for you to write to.
- getOutputStream() - Method in class com.pastdev.jsch.proxy.SshProxy
-
- getOutputStream(long) - Method in class com.pastdev.jsch.scp.ScpFile
-
- getOutputStream(long, String) - Method in class com.pastdev.jsch.scp.ScpFile
-
- getParentLogger() - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- getPort() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- getPort() - Method in interface com.pastdev.jsch.SessionFactory
-
Returns the port that sessions built by this factory will connect to.
- getProxy() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- getProxy() - Method in interface com.pastdev.jsch.SessionFactory
-
Returns the proxy that sessions built by this factory will connect
through, if any.
- getSession() - Method in class com.pastdev.jsch.SessionManager
-
Returns a connected session.
- getSessionFactory() - Method in class com.pastdev.jsch.SessionManager
-
Returns the session factory used by this manager.
- getSize() - Method in class com.pastdev.jsch.scp.ScpEntry
-
- getSize() - Method in class com.pastdev.jsch.scp.ScpFileInputStream
-
- getSocket() - Method in class com.pastdev.jsch.proxy.SshProxy
-
- getSpec() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
Returns the spec string (either calculated or specified) for this tunnel.
- getStderr() - Method in class com.pastdev.jsch.command.CommandRunner.ExecuteResult
-
Returns the text written to STDERR.
- getStdout() - Method in class com.pastdev.jsch.command.CommandRunner.ExecuteResult
-
Returns the text written to STDOUT.
- getTunnel(String, int) - Method in class com.pastdev.jsch.tunnel.TunnelConnection
-
Returns the tunnel matching the supplied values, or null if
there isn't one that matches.
- getTunnel(String, int) - Method in class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Returns the tunnel matching the supplied values, or null if
there isn't one that matches.
- getUserInfo() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- getUserInfo() - Method in interface com.pastdev.jsch.SessionFactory
-
Returns the userInfo that sessions built by this factory will connect
with.
- getUsername() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- getUsername() - Method in interface com.pastdev.jsch.SessionFactory
-
Returns the username that sessions built by this factory will connect
with.
- ScpConnection - Class in com.pastdev.jsch.scp
-
Based on protocol information found
here
- ScpConnection(SessionFactory, String, ScpMode, CopyMode) - Constructor for class com.pastdev.jsch.scp.ScpConnection
-
- ScpEntry - Class in com.pastdev.jsch.scp
-
- ScpEntry.Type - Enum in com.pastdev.jsch.scp
-
- ScpFile - Class in com.pastdev.jsch.scp
-
- ScpFile(SessionFactory, String...) - Constructor for class com.pastdev.jsch.scp.ScpFile
-
- ScpFile(SessionFactory, DestinationOs, String...) - Constructor for class com.pastdev.jsch.scp.ScpFile
-
- ScpFileInputStream - Class in com.pastdev.jsch.scp
-
- ScpFileOutputStream - Class in com.pastdev.jsch.scp
-
- ScpInputStream - Class in com.pastdev.jsch.scp
-
- ScpInputStream(SessionFactory, String, CopyMode) - Constructor for class com.pastdev.jsch.scp.ScpInputStream
-
- ScpMode - Enum in com.pastdev.jsch.scp
-
- ScpOutputStream - Class in com.pastdev.jsch.scp
-
Based upon information found
here.
- ScpOutputStream(SessionFactory, String, CopyMode) - Constructor for class com.pastdev.jsch.scp.ScpOutputStream
-
- SessionFactory - Interface in com.pastdev.jsch
-
An interface for creating Session objects from a common
configuration.
- SessionFactory.SessionFactoryBuilder - Class in com.pastdev.jsch
-
- SessionFactory.SessionFactoryBuilder(JSch, String, String, int, Proxy, Map<String, String>, UserInfo) - Constructor for class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
- sessionManager - Variable in class com.pastdev.jsch.command.CommandRunner
-
- SessionManager - Class in com.pastdev.jsch
-
Provides a convenience wrapper to sessions that maintains the session
connection for you.
- SessionManager(SessionFactory) - Constructor for class com.pastdev.jsch.SessionManager
-
Creates a SessionManager for the supplied sessionFactory.
- setConfig(Map<String, String>) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the configuration options for the sessions created by this factory.
- setConfig(String, String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Adds a single configuration options for the sessions created by this
factory.
- setConfig(Map<String, String>) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current config with config
- setHostname(String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the hostname.
- setHostname(String) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current hostname with hostname
- setIdentitiesFromPrivateKeys(List<String>) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Configures this factory to use a list of identities authenticated by the
supplied private keys.
- setIdentityFromPrivateKey(String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Configures this factory to use a single identity authenticated by the
supplied private key.
- setIdentityFromPrivateKey(String, String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Configures this factory to use a single identity authenticated by the
supplied private key and pass phrase.
- setIdentityRepository(IdentityRepository) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the IdentityRepository for this factory.
- setKnownHosts(InputStream) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the known hosts from the stream.
- setKnownHosts(String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the known hosts from a file at path knownHosts.
- setLoginTimeout(int) - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- setLogWriter(PrintWriter) - Method in class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
- setPassword(String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the password used to authenticate username.
- setPort(int) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the port.
- setPort(int) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current port with port
- setProxy(Proxy) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the proxy through which all connections will be piped.
- setProxy(Proxy) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current proxy with proxy
- setTunnelConnections(Iterable<String>) - Method in class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Creates a set of tunnel connections based upon the pathAndTunnels.
- setTunnelConnectionsFromFile(File) - Method in class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Creates a set of tunnel connections based upon the contents of
tunnelsConfig.
- setUserInfo(UserInfo) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the UserInfo for use with keyboard-interactive
authentication.
- setUserInfo(UserInfo) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current userInfo with userInfo
- setUsername(String) - Method in class com.pastdev.jsch.DefaultSessionFactory
-
Sets the username.
- setUsername(String) - Method in class com.pastdev.jsch.SessionFactory.SessionFactoryBuilder
-
Replaces the current username with username
- SftpRunner - Class in com.pastdev.jsch.sftp
-
Provides a convenience wrapper around an sftp channel.
- SftpRunner(SessionFactory) - Constructor for class com.pastdev.jsch.sftp.SftpRunner
-
Creates a new SftpRunner that will use a
SessionManager that
wraps the supplied
sessionFactory.
- SftpRunner.Sftp - Interface in com.pastdev.jsch.sftp
-
A simple callback interface for working with managed sftp channels.
- Slf4jBridge - Class in com.pastdev.jsch
-
Bridges all JSch logging to the SLF4J API.
- Slf4jBridge() - Constructor for class com.pastdev.jsch.Slf4jBridge
-
- SSH_PORT - Static variable in interface com.pastdev.jsch.SessionFactory
-
- SshProxy - Class in com.pastdev.jsch.proxy
-
- SshProxy(SessionFactory) - Constructor for class com.pastdev.jsch.proxy.SshProxy
-
- stdErr - Variable in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
- stdIn - Variable in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
- stdOut - Variable in class com.pastdev.jsch.command.CommandRunner.ChannelExecWrapper
-
- toString() - Method in class com.pastdev.jsch.DefaultSessionFactory
-
- toString() - Method in class com.pastdev.jsch.proxy.SshProxy
-
- toString() - Method in class com.pastdev.jsch.scp.ScpEntry
-
- toString() - Method in class com.pastdev.jsch.SessionManager
-
- toString() - Method in class com.pastdev.jsch.tunnel.Tunnel
-
- toString() - Method in class com.pastdev.jsch.tunnel.TunnelConnection
-
- Tunnel - Class in com.pastdev.jsch.tunnel
-
Tunnel stores all the information needed to define an ssh port-forwarding
tunnel.
- Tunnel(String) - Constructor for class com.pastdev.jsch.tunnel.Tunnel
-
Creates a Tunnel from a spec string.
- Tunnel(String, int) - Constructor for class com.pastdev.jsch.tunnel.Tunnel
-
Creates a Tunnel to destinationPort on
destinationHostname from a dynamically assigned port on
localhost.
- Tunnel(int, String, int) - Constructor for class com.pastdev.jsch.tunnel.Tunnel
-
Creates a Tunnel to destinationPort on
destinationHostname from localPort on
localhost.
- Tunnel(String, int, String, int) - Constructor for class com.pastdev.jsch.tunnel.Tunnel
-
Creates a Tunnel to destinationPort on
destinationHostname from localPort on
localAlias.
- TunnelConnection - Class in com.pastdev.jsch.tunnel
-
A TunnelConnection represents an ssh connection that opens one or more
Tunnel's.
- TunnelConnection(SessionFactory, int, String, int) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnection
-
- TunnelConnection(SessionFactory, Tunnel...) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnection
-
Creates a TunnelConnection using the the
sessionFactory to
obtain its ssh connection with a list of
Tunnel's.
- TunnelConnection(SessionFactory, List<Tunnel>) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnection
-
Creates a TunnelConnection using the the
sessionFactory to
obtain its ssh connection with a list of
Tunnel's.
- TunnelConnectionManager - Class in com.pastdev.jsch.tunnel
-
Manages a collection of tunnels.
- TunnelConnectionManager(SessionFactory) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Creates a TunnelConnectionManager that will use the
baseSessionFactory to obtain its session connections.
- TunnelConnectionManager(SessionFactory, String...) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Creates a TunnelConnectionManager that will use the
baseSessionFactory to obtain its session connections and
provide the tunnels specified.
- TunnelConnectionManager(SessionFactory, Iterable<String>) - Constructor for class com.pastdev.jsch.tunnel.TunnelConnectionManager
-
Creates a TunnelConnectionManager that will use the
baseSessionFactory to obtain its session connections and
provide the tunnels specified.
- TunneledDataSourceWrapper - Class in com.pastdev.jsch.tunnel
-
Wraps a DataSource, adding the ability to
tunnel over ssh for the connection.
- TunneledDataSourceWrapper(TunnelConnectionManager, DataSource) - Constructor for class com.pastdev.jsch.tunnel.TunneledDataSourceWrapper
-
Creates a DataSource that will ensure all of the tunnels specified by
tunnel are opened when datasource connections are created,
and closed when the datasource is closed.