Modifier and Type | Method and Description |
---|---|
protected SshAgentServer |
DefaultAgentForwardSupport.createSshAgentServer(ConnectionService service,
Session session) |
Modifier and Type | Method and Description |
---|---|
protected RequestHandler.Result |
OpenSshHostKeysHandler.handleHostKeys(Session session,
Collection<? extends PublicKey> keys,
boolean wantReply,
Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
DHGEXClient.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
void |
DHGClient.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
void |
AbstractDHClientKeyExchange.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
Modifier and Type | Method and Description |
---|---|
InputStream |
DefaultScpStreamResolver.resolveSourceStream(Session session,
long length,
Set<PosixFilePermission> permissions,
OpenOption... options) |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientSession
An authenticated session to a given SSH server.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientSession
Provides default implementations of
ClientSession related methods |
class |
ClientSessionImpl
The default implementation of a
ClientSession |
Modifier and Type | Method and Description |
---|---|
Service |
ClientUserAuthServiceFactory.create(Session session) |
Service |
ClientConnectionServiceFactory.create(Session session) |
Constructor and Description |
---|
ClientUserAuthService(Session s) |
Modifier and Type | Method and Description |
---|---|
Session |
Service.getSession() |
Modifier and Type | Method and Description |
---|---|
static Service |
ServiceFactory.create(Collection<? extends ServiceFactory> factories,
String name,
Session session)
Create an instance of the specified name by looking up the needed factory
in the list (case insensitive.
|
Service |
ServiceFactory.create(Session session) |
Modifier and Type | Interface and Description |
---|---|
interface |
UserAuthInstance<S extends Session>
Represents an authentication-in-progress tracker for a specific session
|
Modifier and Type | Method and Description |
---|---|
Session |
Channel.getSession() |
Session |
AbstractChannel.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
Channel.init(ConnectionService service,
Session session,
int id)
Invoked when the local channel is initial created
|
void |
AbstractChannel.init(ConnectionService service,
Session session,
int id) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
FileSystemFactory.createFileSystem(Session session)
Create user specific file system.
|
Modifier and Type | Method and Description |
---|---|
FileSystem |
NativeFileSystemFactory.createFileSystem(Session session) |
Modifier and Type | Method and Description |
---|---|
protected Path |
VirtualFileSystemFactory.computeRootDir(Session session) |
FileSystem |
VirtualFileSystemFactory.createFileSystem(Session session) |
Modifier and Type | Method and Description |
---|---|
Session |
DefaultForwardingFilter.getSession() |
Modifier and Type | Method and Description |
---|---|
default void |
PortForwardingEventListener.establishedDynamicTunnel(Session session,
SshdSocketAddress local,
SshdSocketAddress boundAddress,
Throwable reason)
Signals a successful/failed attempt to establish a dynamic port forwarding
|
default void |
PortForwardingEventListener.establishedExplicitTunnel(Session session,
SshdSocketAddress local,
SshdSocketAddress remote,
boolean localForwarding,
SshdSocketAddress boundAddress,
Throwable reason)
Signals a successful/failed attempt to establish a local/remote port forwarding
|
default void |
PortForwardingEventListener.establishingDynamicTunnel(Session session,
SshdSocketAddress local)
Signals the attempt to establish a dynamic port forwarding
|
default void |
PortForwardingEventListener.establishingExplicitTunnel(Session session,
SshdSocketAddress local,
SshdSocketAddress remote,
boolean localForwarding)
Signals the attempt to establish a local/remote port forwarding
|
default void |
PortForwardingEventListener.tearingDownDynamicTunnel(Session session,
SshdSocketAddress address)
Signals a request to tear down a dynamic forwarding
|
default void |
PortForwardingEventListener.tearingDownExplicitTunnel(Session session,
SshdSocketAddress address,
boolean localForwarding,
SshdSocketAddress remoteAddress)
Signals a request to tear down a local/remote port forwarding
|
default void |
PortForwardingEventListener.tornDownDynamicTunnel(Session session,
SshdSocketAddress address,
Throwable reason)
Signals a successful/failed request to tear down a dynamic port forwarding
|
default void |
PortForwardingEventListener.tornDownExplicitTunnel(Session session,
SshdSocketAddress address,
boolean localForwarding,
SshdSocketAddress remoteAddress,
Throwable reason)
Signals a successful/failed request to tear down a local/remote port forwarding
|
Modifier and Type | Method and Description |
---|---|
protected abstract RequestHandler.Result |
AbstractOpenSshHostKeysHandler.handleHostKeys(Session session,
Collection<? extends PublicKey> keys,
boolean wantReply,
Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
KeyExchange.init(Session session,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractDHKeyExchange.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
Modifier and Type | Method and Description |
---|---|
Session |
ScpHelper.getSession() |
Modifier and Type | Method and Description |
---|---|
ScpSourceStreamResolver |
ScpFileOpener.createScpSourceStreamResolver(Session session,
Path path) |
ScpTargetStreamResolver |
ScpFileOpener.createScpTargetStreamResolver(Session session,
Path path) |
default void |
ScpTransferEventListener.endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
AbstractScpTransferEventListenerAdapter.endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
default void |
ScpTransferEventListener.endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
AbstractScpTransferEventListenerAdapter.endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
default BasicFileAttributes |
ScpFileOpener.getLocalBasicFileAttributes(Session session,
Path path,
LinkOption... options) |
default Set<PosixFilePermission> |
ScpFileOpener.getLocalFilePermissions(Session session,
Path path,
LinkOption... options) |
default DirectoryStream<Path> |
ScpFileOpener.getLocalFolderChildren(Session session,
Path path)
Invoked when required to send all children of a local directory
|
default Iterable<String> |
ScpFileOpener.getMatchingFilesToSend(Session session,
String basedir,
String pattern)
Invoked when required to send a pattern of files
|
InputStream |
ScpFileOpener.openRead(Session session,
Path file,
long size,
Set<PosixFilePermission> permissions,
OpenOption... options)
Create an input stream to read from a file
|
OutputStream |
ScpFileOpener.openWrite(Session session,
Path file,
long size,
Set<PosixFilePermission> permissions,
OpenOption... options)
Create an output stream to write to a file
|
void |
ScpReceiveLineHandler.process(Session session,
String line,
boolean isDir,
ScpTimestamp time) |
default Path |
ScpFileOpener.resolveIncomingFilePath(Session session,
Path localPath,
String name,
boolean preserve,
Set<PosixFilePermission> permissions,
ScpTimestamp time)
Invoked when receiving a new file to via a directory command
|
default Path |
ScpFileOpener.resolveIncomingReceiveLocation(Session session,
Path path,
boolean recursive,
boolean shouldBeDir,
boolean preserve)
Invoked when a request to receive something is processed
|
default Path |
ScpFileOpener.resolveLocalPath(Session session,
FileSystem fileSystem,
String commandPath) |
default Path |
ScpFileOpener.resolveOutgoingFilePath(Session session,
Path localPath,
LinkOption... options)
Called when there is a candidate file/folder for sending
|
InputStream |
ScpSourceStreamResolver.resolveSourceStream(Session session,
long fileSize,
Set<PosixFilePermission> permissions,
OpenOption... options) |
OutputStream |
ScpTargetStreamResolver.resolveTargetStream(Session session,
String name,
long length,
Set<PosixFilePermission> perms,
OpenOption... options)
Called when receiving a file in order to obtain an output stream
for the incoming data
|
default boolean |
ScpFileOpener.sendAsDirectory(Session session,
Path path,
LinkOption... options)
Invoked on a local path in order to decide whether it should be sent
as a file or as a directory
|
default boolean |
ScpFileOpener.sendAsRegularFile(Session session,
Path path,
LinkOption... options)
Invoked on a local path in order to decide whether it should be sent
as a file or as a directory
|
default void |
ScpTransferEventListener.startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
void |
AbstractScpTransferEventListenerAdapter.startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
default void |
ScpTransferEventListener.startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
void |
AbstractScpTransferEventListenerAdapter.startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
Constructor and Description |
---|
ScpHelper(Session session,
InputStream in,
OutputStream out,
FileSystem fileSystem,
ScpFileOpener opener,
ScpTransferEventListener eventListener) |
Modifier and Type | Method and Description |
---|---|
ScpSourceStreamResolver |
DefaultScpFileOpener.createScpSourceStreamResolver(Session session,
Path path) |
ScpTargetStreamResolver |
DefaultScpFileOpener.createScpTargetStreamResolver(Session session,
Path path) |
InputStream |
DefaultScpFileOpener.openRead(Session session,
Path file,
long size,
Set<PosixFilePermission> permissions,
OpenOption... options) |
OutputStream |
DefaultScpFileOpener.openWrite(Session session,
Path file,
long size,
Set<PosixFilePermission> permissions,
OpenOption... options) |
InputStream |
LocalFileScpSourceStreamResolver.resolveSourceStream(Session session,
long length,
Set<PosixFilePermission> permissions,
OpenOption... options) |
OutputStream |
LocalFileScpTargetStreamResolver.resolveTargetStream(Session session,
String name,
long length,
Set<PosixFilePermission> perms,
OpenOption... options) |
Modifier and Type | Interface and Description |
---|---|
interface |
SessionHolder<S extends Session> |
Modifier and Type | Method and Description |
---|---|
Session |
SessionWorkBuffer.getSession() |
Modifier and Type | Method and Description |
---|---|
default void |
ReservedSessionMessagesHandler.handleDebugMessage(Session session,
Buffer buffer)
Invoked when an
SSH_MSG_DEBUG packet is received |
default void |
ReservedSessionMessagesHandler.handleIgnoreMessage(Session session,
Buffer buffer)
Invoked when an
SSH_MSG_IGNORE packet is received |
default boolean |
ReservedSessionMessagesHandler.handleUnimplementedMessage(Session session,
int cmd,
Buffer buffer)
Invoked when a packet with an un-implemented message is received - including
SSH_MSG_UNIMPLEMENTED itself |
static <T> T |
Session.resolveAttribute(Session session,
AttributeRepository.AttributeKey<T> key)
Attempts to use the session's attribute, if not found then tries the factory manager
|
default void |
SessionListener.sessionClosed(Session session)
A session has been closed
|
default void |
SessionListener.sessionCreated(Session session)
A new session just been created
|
default void |
SessionListener.sessionDisconnect(Session session,
int reason,
String msg,
String language,
boolean initiator)
Invoked when
SSH_MSG_DISCONNECT message was sent/received |
default void |
SessionListener.sessionEvent(Session session,
SessionListener.Event event)
An event has been triggered
|
default void |
SessionListener.sessionException(Session session,
Throwable t)
An exception was caught and the session will be closed
(if not already so).
|
default void |
SessionListener.sessionNegotiationEnd(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal,
Map<KexProposalOption,String> negotiatedOptions,
Throwable reason)
Signals the end of the negotiation options handling
|
default void |
SessionListener.sessionNegotiationStart(Session session,
Map<KexProposalOption,String> clientProposal,
Map<KexProposalOption,String> serverProposal)
Signals the start of the negotiation options handling
|
Constructor and Description |
---|
SessionWorkBuffer(Session session) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSession
The AbstractSession handles all the basic SSH protocol such as key exchange, authentication,
encoding and decoding.
|
class |
SessionHelper
Contains split code in order to make
AbstractSession class smaller |
Modifier and Type | Method and Description |
---|---|
void |
ReservedSessionMessagesHandlerAdapter.handleDebugMessage(Session session,
boolean display,
String msg,
String lang,
Buffer buffer) |
void |
ReservedSessionMessagesHandlerAdapter.handleDebugMessage(Session session,
Buffer buffer) |
void |
ReservedSessionMessagesHandlerAdapter.handleIgnoreMessage(Session session,
Buffer buffer) |
void |
ReservedSessionMessagesHandlerAdapter.handleIgnoreMessage(Session session,
byte[] data,
Buffer buffer) |
boolean |
ReservedSessionMessagesHandlerAdapter.handleUnimplementedMessage(Session session,
int cmd,
Buffer buffer) |
void |
SessionTimeoutListener.sessionClosed(Session s) |
void |
SessionTimeoutListener.sessionCreated(Session session) |
void |
SessionTimeoutListener.sessionEvent(Session session,
SessionListener.Event event) |
void |
SessionTimeoutListener.sessionException(Session session,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
static boolean |
PuttyRequestHandler.isPuttyClient(Session session) |
Modifier and Type | Method and Description |
---|---|
Session |
AbstractCommandSupport.getSession() |
Modifier and Type | Method and Description |
---|---|
boolean |
StaticDecisionForwardingFilter.canConnect(TcpForwardingFilter.Type type,
SshdSocketAddress address,
Session session) |
boolean |
TcpForwardingFilter.canConnect(TcpForwardingFilter.Type type,
SshdSocketAddress address,
Session session)
Determine if the session may create an outbound connection.
|
boolean |
StaticDecisionForwardingFilter.canForwardAgent(Session session,
String requestType) |
boolean |
AgentForwardingFilter.canForwardAgent(Session session,
String requestType)
Determine if the session may arrange for agent forwarding.
|
boolean |
StaticDecisionForwardingFilter.canForwardX11(Session session,
String requestType) |
boolean |
X11ForwardingFilter.canForwardX11(Session session,
String requestType)
Determine if the session may arrange for X11 forwarding.
|
boolean |
StaticDecisionForwardingFilter.canListen(SshdSocketAddress address,
Session session) |
boolean |
TcpForwardingFilter.canListen(SshdSocketAddress address,
Session session)
Determine if the session may listen for inbound connections.
|
protected boolean |
StaticDecisionForwardingFilter.checkAcceptance(String request,
Session session,
SshdSocketAddress target) |
Modifier and Type | Method and Description |
---|---|
protected RequestHandler.Result |
OpenSshHostKeysHandler.handleHostKeys(Session session,
Collection<? extends PublicKey> keys,
boolean wantReply,
Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractDHServerKeyExchange.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
void |
DHGServer.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
void |
DHGEXServer.init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c) |
Modifier and Type | Interface and Description |
---|---|
interface |
ServerSession |
Modifier and Type | Class and Description |
---|---|
class |
AbstractServerSession
Provides default implementations for
ServerSession related methods |
class |
ServerSessionImpl
The default implementation for a
ServerSession |
Modifier and Type | Method and Description |
---|---|
Service |
ServerConnectionServiceFactory.create(Session session) |
Service |
ServerUserAuthServiceFactory.create(Session session) |
Constructor and Description |
---|
ServerUserAuthService(Session s) |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.