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 SshClientListener
public void authenticationStarted(SshClient client, String[] methods)
authenticationStarted
in interface SshClientListener
public void authenticated(SshClient client, String username)
authenticated
in interface SshClientListener
public void sessionOpened(SshClient client, SshSession channel)
sessionOpened
in interface SshClientListener
public void sessionClosed(SshClient client, SshSession channel)
sessionClosed
in interface SshClientListener
public void disconnecting(SshClient client, String msg, int reason)
disconnecting
in interface SshClientListener
public void disconnected(SshClient client, String msg, int reason)
disconnected
in interface SshClientListener
public void idle(SshClient client, long lastActivity)
idle
in interface SshClientListener
public void executingCommand(SshClient client, SshSession session, String cmd)
executingCommand
in interface SshClientListener
public void executedCommand(SshClient client, SshSession session, String cmd)
executedCommand
in interface SshClientListener
public void startingShell(SshClient client, SshSession sSession)
startingShell
in interface SshClientListener
public void startedShell(SshClient client, SshSession session)
startedShell
in interface SshClientListener
public void startingSubsystem(SshClient client, SshSession session, String subsystem)
startingSubsystem
in interface SshClientListener
public void startedSubsystem(SshClient client, SshSession session, String subsystem)
startedSubsystem
in interface SshClientListener
public void commandExecuted(SshClient client, SshSession session, String cmd, int exitCode)
commandExecuted
in interface SshClientListener
public void subsystemClosed(SshClient client, SshSession session, String subsystem)
subsystemClosed
in interface SshClientListener
public void shellClosed(SshClient client, SshSession session)
shellClosed
in interface SshClientListener
public void keyExchangeComplete(SshClient client, SshPublicKey hostkey, String keyExchange, String cipherCS, String cipherSC, String macCS, String macSC, String compressionCS, String compressionSC)
keyExchangeComplete
in interface SshClientListener
Copyright © 2024. All rights reserved.