Package | Description |
---|---|
com.jcraft.jsch | |
com.jcraft.jsch.jgss |
Modifier and Type | Class and Description |
---|---|
(package private) class |
JSchAuthCancelException |
(package private) class |
JSchPartialAuthException |
Modifier and Type | Method and Description |
---|---|
private int |
Session._setPortForwardingR(java.lang.String bind_address,
int rport) |
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.
|
private void |
KnownHosts.addInvalidLine(java.lang.String line) |
(package private) static void |
ChannelForwardedTCPIP.addPort(Session session,
java.lang.String _address_to_bind,
int port,
int allocated_port,
java.lang.String target,
int lport,
SocketFactory factory) |
(package private) static void |
ChannelForwardedTCPIP.addPort(Session session,
java.lang.String _address_to_bind,
int port,
int allocated_port,
java.lang.String daemon,
java.lang.Object[] arg) |
(package private) static PortWatcher |
PortWatcher.addPort(Session session,
java.lang.String address,
int lport,
java.lang.String host,
int rport,
ServerSocketFactory ssf) |
private void |
Session.applyConfig() |
private void |
Session.applyConfigChannel(ChannelSession channel) |
private void |
Session.checkHost(java.lang.String chost,
int port,
KeyExchange kex) |
void |
Session.connect() |
void |
Channel.connect() |
void |
Session.connect(int connectTimeout) |
void |
ChannelDirectTCPIP.connect(int connectTimeout) |
void |
Channel.connect(int connectTimeout) |
void |
ProxySOCKS4.connect(SocketFactory socket_factory,
java.lang.String host,
int port,
int timeout) |
void |
ProxySOCKS5.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) |
(package private) HostKey |
KnownHosts.createHashedHostKey(java.lang.String host,
byte[] key) |
(package private) static java.net.Socket |
Util.createSocket(java.lang.String host,
int port,
int timeout) |
(package private) static void |
PortWatcher.delPort(Session session,
java.lang.String address,
int lport) |
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 . |
private void |
ProxySOCKS5.fill(java.io.InputStream in,
byte[] buf,
int len) |
byte[] |
KeyPairPKCS8.forSSHAgent() |
byte[] |
KeyPairDSA.forSSHAgent() |
byte[] |
KeyPairRSA.forSSHAgent() |
byte[] |
KeyPairECDSA.forSSHAgent() |
abstract byte[] |
KeyPair.forSSHAgent() |
(package private) static byte[] |
Util.fromBase64(byte[] buf,
int start,
int length) |
(package private) static KeyPair |
KeyPairDSA.fromSSHAgent(JSch jsch,
Buffer buf) |
(package private) static KeyPair |
KeyPairRSA.fromSSHAgent(JSch jsch,
Buffer buf) |
(package private) static KeyPair |
KeyPairECDSA.fromSSHAgent(JSch jsch,
Buffer buf) |
(package private) void |
KeyPairPKCS8.generate(int key_size) |
(package private) void |
KeyPairDSA.generate(int key_size) |
(package private) void |
KeyPairRSA.generate(int key_size) |
(package private) void |
KeyPairECDSA.generate(int key_size) |
(package private) abstract void |
KeyPair.generate(int key_size) |
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type) |
static KeyPair |
KeyPair.genKeyPair(JSch jsch,
int type,
int key_size) |
(package private) byte[][] |
Buffer.getBytes(int n,
java.lang.String msg) |
java.util.Vector |
JSch.getIdentityNames()
Lists names of identities included in the identityRepository.
|
(package private) static PortWatcher |
PortWatcher.getPort(Session session,
java.lang.String address,
int lport) |
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 . |
(package private) void |
ChannelSubsystem.init() |
(package private) void |
ChannelShell.init() |
(package private) void |
ChannelExec.init() |
(package private) void |
Channel.init() |
byte[] |
GSSContext.init(byte[] token,
int s,
int l) |
private void |
Session.initDeflater(java.lang.String method) |
private void |
Session.initInflater(java.lang.String method) |
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) |
(package private) static KeyPair |
KeyPair.loadPPK(JSch jsch,
byte[] buf) |
(package private) static IdentityFile |
IdentityFile.newInstance(java.lang.String name,
byte[] prvkey,
byte[] pubkey,
JSch jsch) |
(package private) static IdentityFile |
IdentityFile.newInstance(java.lang.String prvfile,
java.lang.String pubfile,
JSch jsch) |
Channel |
Session.openChannel(java.lang.String type) |
private Session.Forwarding |
Session.parseForwarding(java.lang.String conf)
The given argument may be "[bind_address:]port:host:hostport" or
"[bind_address:]port host:hostport", which is from LocalForward command of
~/.ssh/config .
|
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)
Deprecated.
use #removeIdentity(Identity identity)
|
private void |
Session.requestPortForwarding() |
void |
ChannelSftp.setBulkRequests(int bulk_requests)
Specify how many requests may be sent at any one time.
|
(package private) void |
KnownHosts.setKnownHosts(java.io.InputStream input) |
void |
JSch.setKnownHosts(java.io.InputStream stream)
Sets the instance of
KnownHosts generated with
stream . |
(package private) void |
KnownHosts.setKnownHosts(java.lang.String filename) |
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.
|
boolean |
IdentityFile.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) |
private void |
Session.start_discard(Buffer buf,
Cipher cipher,
MAC mac,
int packet_length,
int discard) |
void |
ChannelSubsystem.start() |
void |
ChannelShell.start() |
void |
ChannelExec.start() |
void |
ChannelSftp.start() |
void |
Channel.start() |
Constructor and Description |
---|
HashedHostKey(java.lang.String host,
byte[] key) |
HashedHostKey(java.lang.String host,
int type,
byte[] key) |
HashedHostKey(java.lang.String marker,
java.lang.String host,
int type,
byte[] key,
java.lang.String comment) |
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) |
IdentityFile(JSch jsch,
java.lang.String name,
KeyPair kpair) |
PortWatcher(Session session,
java.lang.String address,
int lport,
java.lang.String host,
int rport,
ServerSocketFactory factory) |
Session(JSch jsch,
java.lang.String username,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
GSSContextKrb5.create(java.lang.String user,
java.lang.String host) |
byte[] |
GSSContextKrb5.init(byte[] token,
int s,
int l) |