public interface ISessionFactory
Session objects from a common
configuration. Also supports creation of other SessionFactory instances that
are initialized from the same configuration and can be modified as necessary.| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_PORT |
| Modifier and Type | Method and Description |
|---|---|
default String |
getAsString() |
String |
getHostname() |
int |
getPort() |
com.jcraft.jsch.Proxy |
getProxy() |
com.jcraft.jsch.UserInfo |
getUserInfo() |
String |
getUsername() |
com.jcraft.jsch.Session |
newSession() |
AbstractSessionFactoryBuilder |
newSessionFactoryBuilder()
Returns a builder for another session factory pre-initialized with the
configuration for this session factory.
|
static final int SSH_PORT
String getHostname()
int getPort()
@Nullable com.jcraft.jsch.Proxy getProxy()
null will be returned.String getUsername()
com.jcraft.jsch.UserInfo getUserInfo()
@Nonnull com.jcraft.jsch.Session newSession() throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException - If username or hostname are invalidJSch.getSession(String, String, int)@Nonnull AbstractSessionFactoryBuilder newSessionFactoryBuilder()
Copyright © 2020 Philip Helger. All rights reserved.