public class SshClientAdapter extends Object implements SshClientListener
| Constructor and Description |
|---|
SshClientAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticated(SshClient client,
String username) |
void |
authenticationStarted(SshClient client,
String[] methods) |
void |
commandExecuted(SshClient client,
SshSession session,
String cmd,
int exitCode) |
void |
connected(SshClient client,
String remoteIdentification) |
void |
disconnected(SshClient client,
String msg,
int reason) |
void |
disconnecting(SshClient client,
String msg,
int reason) |
void |
executedCommand(SshClient client,
SshSession session,
String cmd) |
void |
executingCommand(SshClient client,
SshSession session,
String cmd) |
void |
idle(SshClient client,
long lastActivity) |
void |
keyExchangeComplete(SshClient client,
SshPublicKey hostkey,
String keyExchange,
String cipherCS,
String cipherSC,
String macCS,
String macSC,
String compressionCS,
String compressionSC) |
void |
sessionClosed(SshClient client,
SshSession channel) |
void |
sessionOpened(SshClient client,
SshSession channel) |
void |
shellClosed(SshClient client,
SshSession session) |
void |
startedShell(SshClient client,
SshSession session) |
void |
startedSubsystem(SshClient client,
SshSession session,
String subsystem) |
void |
startingShell(SshClient client,
SshSession sSession) |
void |
startingSubsystem(SshClient client,
SshSession session,
String subsystem) |
void |
subsystemClosed(SshClient client,
SshSession session,
String subsystem) |
public void connected(SshClient client, String remoteIdentification)
connected in interface SshClientListenerpublic void authenticationStarted(SshClient client, String[] methods)
authenticationStarted in interface SshClientListenerpublic void authenticated(SshClient client, String username)
authenticated in interface SshClientListenerpublic void sessionOpened(SshClient client, SshSession channel)
sessionOpened in interface SshClientListenerpublic void sessionClosed(SshClient client, SshSession channel)
sessionClosed in interface SshClientListenerpublic void disconnecting(SshClient client, String msg, int reason)
disconnecting in interface SshClientListenerpublic void disconnected(SshClient client, String msg, int reason)
disconnected in interface SshClientListenerpublic void idle(SshClient client, long lastActivity)
idle in interface SshClientListenerpublic void executingCommand(SshClient client, SshSession session, String cmd)
executingCommand in interface SshClientListenerpublic void executedCommand(SshClient client, SshSession session, String cmd)
executedCommand in interface SshClientListenerpublic void startingShell(SshClient client, SshSession sSession)
startingShell in interface SshClientListenerpublic void startedShell(SshClient client, SshSession session)
startedShell in interface SshClientListenerpublic void startingSubsystem(SshClient client, SshSession session, String subsystem)
startingSubsystem in interface SshClientListenerpublic void startedSubsystem(SshClient client, SshSession session, String subsystem)
startedSubsystem in interface SshClientListenerpublic void commandExecuted(SshClient client, SshSession session, String cmd, int exitCode)
commandExecuted in interface SshClientListenerpublic void subsystemClosed(SshClient client, SshSession session, String subsystem)
subsystemClosed in interface SshClientListenerpublic void shellClosed(SshClient client, SshSession session)
shellClosed in interface SshClientListenerpublic void keyExchangeComplete(SshClient client, SshPublicKey hostkey, String keyExchange, String cipherCS, String cipherSC, String macCS, String macSC, String compressionCS, String compressionSC)
keyExchangeComplete in interface SshClientListenerCopyright © 2025. All rights reserved.