程序包 | 说明 |
---|---|
com.fr.ftp.client |
FTP and FTPS support classes
|
com.fr.ssh | |
com.fr.ssh.jsch | |
com.fr.ssh.jsch.jgss |
限定符和类型 | 方法和说明 |
---|---|
boolean |
FineSFTPClient.login() |
boolean |
FineSFTPClient.login(int timeout) |
限定符和类型 | 方法和说明 |
---|---|
static ChannelSftp |
SecureFTPToolbox.getChannel(java.lang.String username,
java.lang.String password,
java.lang.String ip,
int port)
传入一个通道对象
|
限定符和类型 | 方法和说明 |
---|---|
void |
JSch.addIdentity(Identity identity,
byte[] passphrase)
Sets the private key, which will be referred in
the public key authentication.
|
void |
JSch.addIdentity(java.lang.String prvkey)
Sets the private key, which will be referred in
the public key authentication.
|
void |
JSch.addIdentity(java.lang.String prvkey,
byte[] passphrase)
Sets the private key, which will be referred in
the public key authentication.
|
void |
JSch.addIdentity(java.lang.String name,
byte[] prvkey,
byte[] pubkey,
byte[] passphrase)
Sets the private key, which will be referred in
the public key authentication.
|
void |
JSch.addIdentity(java.lang.String prvkey,
java.lang.String passphrase)
Sets the private key, which will be referred in
the public key authentication.
|
void |
JSch.addIdentity(java.lang.String prvkey,
java.lang.String pubkey,
byte[] passphrase)
Sets the private key, which will be referred in
the public key authentication.
|
void |
Session.connect() |
void |
Channel.connect() |
void |
Session.connect(int connectTimeout) |
void |
ChannelDirectTCPIP.connect(int connectTimeout) |
void |
Channel.connect(int connectTimeout) |
void |
ProxySOCKS5.connect(SocketFactory socket_factory,
java.lang.String host,
int port,
int timeout) |
void |
ProxySOCKS4.connect(SocketFactory socket_factory,
java.lang.String host,
int port,
int timeout) |
void |
ProxyHTTP.connect(SocketFactory socket_factory,
java.lang.String host,
int port,
int timeout) |
void |
GSSContext.create(java.lang.String user,
java.lang.String host) |
void |
Session.delPortForwardingL(int lport)
Cancels the local port forwarding assigned
at local TCP port
lport on loopback interface. |
void |
Session.delPortForwardingL(java.lang.String bind_address,
int lport)
Cancels the local port forwarding assigned
at local TCP port
lport on bind_address interface. |
void |
Session.delPortForwardingR(int rport)
Cancels the remote port forwarding assigned at remote TCP port
rport . |
void |
Session.delPortForwardingR(java.lang.String bind_address,
int rport)
Cancels the remote port forwarding assigned at
remote TCP port
rport bound on the interface at
bind_address . |
byte[] |
KeyPairRSA.forSSHAgent() |
byte[] |
KeyPairPKCS8.forSSHAgent() |
byte[] |
KeyPairECDSA.forSSHAgent() |
byte[] |
KeyPairDSA.forSSHAgent() |
abstract byte[] |
KeyPair.forSSHAgent() |
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type) |
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type,
int key_size) |
java.util.Vector |
JSch.getIdentityNames()
Lists names of identities included in the identityRepository.
|
java.lang.String[] |
Session.getPortForwardingL()
Lists the registered local port forwarding.
|
java.lang.String[] |
Session.getPortForwardingR()
Lists the registered remote port forwarding.
|
Session |
Channel.getSession() |
Session |
JSch.getSession(java.lang.String host)
Instantiates the
Session object with
host . |
Session |
JSch.getSession(java.lang.String username,
java.lang.String host)
Instantiates the
Session object with
username and host . |
Session |
JSch.getSession(java.lang.String username,
java.lang.String host,
int port)
Instantiates the
Session object with given
username , host and port . |
Channel |
Session.getStreamForwarder(java.lang.String host,
int port)
Instantiates an instance of stream-forwarder to
host :port . |
byte[] |
GSSContext.init(byte[] token,
int s,
int l) |
static KeyPair |
KeyPair.load(JSch jsch,
byte[] prvkey,
byte[] pubkey) |
static KeyPair |
KeyPair.load(JSch jsch,
java.lang.String prvkey) |
static KeyPair |
KeyPair.load(JSch jsch,
java.lang.String prvfile,
java.lang.String pubfile) |
Channel |
Session.openChannel(java.lang.String type) |
void |
JSch.removeAllIdentity()
Removes all identities from identityRepository.
|
void |
JSch.removeIdentity(Identity identity)
Removes the identity from identityRepository.
|
void |
JSch.removeIdentity(java.lang.String name)
已过时。
use #removeIdentity(Identity identity)
|
void |
ChannelSftp.setBulkRequests(int bulk_requests)
Specify how many requests may be sent at any one time.
|
void |
JSch.setKnownHosts(java.io.InputStream stream)
Sets the instance of
KnownHosts generated with
stream . |
void |
JSch.setKnownHosts(java.lang.String filename)
Sets the instance of
KnownHosts , which refers
to filename . |
boolean |
Identity.setPassphrase(byte[] passphrase)
Decrypts this identity with the specified pass-phrase.
|
int |
Session.setPortForwardingL(int lport,
java.lang.String host,
int rport)
Registers the local port forwarding for loop-back interface.
|
int |
Session.setPortForwardingL(java.lang.String conf)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(java.lang.String bind_address,
int lport,
java.lang.String host,
int rport)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(java.lang.String bind_address,
int lport,
java.lang.String host,
int rport,
ServerSocketFactory ssf)
Registers the local port forwarding.
|
int |
Session.setPortForwardingL(java.lang.String bind_address,
int lport,
java.lang.String host,
int rport,
ServerSocketFactory ssf,
int connectTimeout)
Registers the local port forwarding.
|
void |
Session.setPortForwardingR(int rport,
java.lang.String daemon)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
java.lang.String host,
int lport)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
java.lang.String host,
int lport,
SocketFactory sf)
Registers the remote port forwarding for the loopback interface
of the remote.
|
void |
Session.setPortForwardingR(int rport,
java.lang.String daemon,
java.lang.Object[] arg)
Registers the remote port forwarding for the loopback interface
of the remote.
|
int |
Session.setPortForwardingR(java.lang.String conf)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(java.lang.String bind_address,
int rport,
java.lang.String host,
int lport)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(java.lang.String bind_address,
int rport,
java.lang.String host,
int lport,
SocketFactory sf)
Registers the remote port forwarding.
|
void |
Session.setPortForwardingR(java.lang.String bind_address,
int rport,
java.lang.String daemon,
java.lang.Object[] arg)
Registers the remote port forwarding.
|
void |
Session.setServerAliveInterval(int interval)
Sets the interval to send a keep-alive message.
|
void |
Session.setTimeout(int timeout) |
void |
ChannelSubsystem.start() |
void |
ChannelShell.start() |
void |
ChannelSftp.start() |
void |
ChannelExec.start() |
void |
Channel.start() |
构造器和说明 |
---|
HostKey(java.lang.String host,
byte[] key) |
HostKey(java.lang.String host,
int type,
byte[] key) |
HostKey(java.lang.String host,
int type,
byte[] key,
java.lang.String comment) |
HostKey(java.lang.String marker,
java.lang.String host,
int type,
byte[] key,
java.lang.String comment) |
限定符和类型 | 方法和说明 |
---|---|
void |
GSSContextKrb5.create(java.lang.String user,
java.lang.String host) |
byte[] |
GSSContextKrb5.init(byte[] token,
int s,
int l) |