public class JSch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION |
Constructor and Description |
---|
JSch() |
Modifier and Type | Method and Description |
---|---|
void |
addIdentity(Identity identity,
byte[] passphrase) |
void |
addIdentity(java.lang.String prvkey) |
void |
addIdentity(java.lang.String prvkey,
byte[] passphrase) |
void |
addIdentity(java.lang.String name,
byte[] prvkey,
byte[] pubkey,
byte[] passphrase) |
void |
addIdentity(java.lang.String prvkey,
java.lang.String passphrase) |
void |
addIdentity(java.lang.String prvkey,
java.lang.String pubkey,
byte[] passphrase) |
protected void |
addSession(Session session) |
static java.lang.String |
getConfig(java.lang.String key) |
HostKeyRepository |
getHostKeyRepository() |
java.util.Vector |
getIdentityNames() |
Session |
getSession(java.lang.String username,
java.lang.String host) |
Session |
getSession(java.lang.String username,
java.lang.String host,
int port) |
void |
removeAllIdentity() |
void |
removeIdentity(Identity identity) |
void |
removeIdentity(java.lang.String name)
Deprecated.
use JSch#removeIdentity(Identity identity)
|
protected boolean |
removeSession(Session session) |
static void |
setConfig(java.util.Hashtable newconf) |
static void |
setConfig(java.lang.String key,
java.lang.String value) |
void |
setHostKeyRepository(HostKeyRepository hkrepo) |
void |
setIdentityRepository(IdentityRepository identityRepository) |
void |
setKnownHosts(java.io.InputStream stream) |
void |
setKnownHosts(java.lang.String filename) |
static void |
setLogger(Logger logger) |
public static final java.lang.String VERSION
public void setIdentityRepository(IdentityRepository identityRepository)
public Session getSession(java.lang.String username, java.lang.String host) throws JSchException
JSchException
public Session getSession(java.lang.String username, java.lang.String host, int port) throws JSchException
JSchException
protected void addSession(Session session)
protected boolean removeSession(Session session)
public void setHostKeyRepository(HostKeyRepository hkrepo)
public void setKnownHosts(java.lang.String filename) throws JSchException
JSchException
public void setKnownHosts(java.io.InputStream stream) throws JSchException
JSchException
public HostKeyRepository getHostKeyRepository()
public void addIdentity(java.lang.String prvkey) throws JSchException
JSchException
public void addIdentity(java.lang.String prvkey, java.lang.String passphrase) throws JSchException
JSchException
public void addIdentity(java.lang.String prvkey, byte[] passphrase) throws JSchException
JSchException
public void addIdentity(java.lang.String prvkey, java.lang.String pubkey, byte[] passphrase) throws JSchException
JSchException
public void addIdentity(java.lang.String name, byte[] prvkey, byte[] pubkey, byte[] passphrase) throws JSchException
JSchException
public void addIdentity(Identity identity, byte[] passphrase) throws JSchException
JSchException
public void removeIdentity(java.lang.String name) throws JSchException
JSchException
public void removeIdentity(Identity identity) throws JSchException
JSchException
public java.util.Vector getIdentityNames() throws JSchException
JSchException
public void removeAllIdentity() throws JSchException
JSchException
public static java.lang.String getConfig(java.lang.String key)
public static void setConfig(java.util.Hashtable newconf)
public static void setConfig(java.lang.String key, java.lang.String value)
public static void setLogger(Logger logger)