public class JSchSessionFactory extends Object
Session.
Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Field and Description |
|---|---|
protected com.jcraft.jsch.JSch |
jsch
The
JSch framework. |
| Constructor and Description |
|---|
JSchSessionFactory()
Create a
JSchSessionFactory. |
JSchSessionFactory(com.jcraft.jsch.JSch jsch)
Create a
JSchSessionFactory using the specified
JSch framework. |
| Modifier and Type | Method and Description |
|---|---|
com.jcraft.jsch.Session |
createSession(String hostName,
int port,
String userName,
Authentication authentication,
JSchSocketFactory socketFactory,
com.oracle.bedrock.OptionsByType optionsByType)
Create a JSch
Session connected to the specified remote host. |
public JSchSessionFactory()
JSchSessionFactory.public JSchSessionFactory(com.jcraft.jsch.JSch jsch)
JSchSessionFactory using the specified
JSch framework.jsch - the JSch framework to usepublic com.jcraft.jsch.Session createSession(String hostName, int port, String userName, Authentication authentication, JSchSocketFactory socketFactory, com.oracle.bedrock.OptionsByType optionsByType) throws com.jcraft.jsch.JSchException
Session connected to the specified remote host.userName - the user name to use to connect to the specified hostauthentication - the Authentication method to use to authenticate the userhostName - the host name of the remote host to connect toport - the port on the remote host to connect tosocketFactory - the JSchSocketFactory to useoptionsByType - the OptionsByType to use to control the sessionSession connected to the specified remote hostcom.jcraft.jsch.JSchException - if an error occurs creating the SessionCopyright © 2017. All rights reserved.