public interface ForwardingFilter
Modifier and Type | Method and Description |
---|---|
boolean |
canConnect(InetSocketAddress address,
ServerSession session)
Determine if the session may create an outbound connection.
|
boolean |
canForwardAgent(ServerSession session)
Determine if the session may arrange for agent forwarding.
|
boolean |
canForwardX11(ServerSession session)
Determine if the session may arrange for X11 forwarding.
|
boolean |
canListen(InetSocketAddress address,
ServerSession session)
Determine if the session may listen for inbound connections.
|
boolean canForwardAgent(ServerSession session)
This server process will open a new listen socket locally and export
the address in the SshAgent.SSH_AUTHSOCKET_ENV_NAME
environment
variable.
session
- session requesting permission to forward the agent.boolean canForwardX11(ServerSession session)
This server process will open a new listen socket locally and export the address in the environment so X11 clients can be tunneled to the user's X11 display server.
session
- session requesting permission to forward X11 connections.boolean canListen(InetSocketAddress address, ServerSession session)
This server process will open a new listen socket on the address given by the client (usually 127.0.0.1 but may be any address). Any inbound connections to this socket will be tunneled over the session to the client, which the client will then forward the connection to another host on the client's side of the network.
address
- address the client has requested this server listen
for inbound connections on, and relay them through the client.session
- session requesting permission to listen for connections.boolean canConnect(InetSocketAddress address, ServerSession session)
This server process will connect to another server listening on the address specified by the client. Usually this is to another port on the same host (127.0.0.1) but may be to any other system this server can reach on the server's side of the network.
address
- address the client has requested this server listen
for inbound connections on, and relay them through the client.session
- session requesting permission to listen for connections.Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.