Package org.apache.sshd.server.forward
Interface AgentForwardingFilter
-
- All Known Subinterfaces:
ForwardingFilter
- All Known Implementing Classes:
AcceptAllForwardingFilter,RejectAllForwardingFilter,StaticDecisionForwardingFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AgentForwardingFilter
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static AgentForwardingFilterDEFAULT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanForwardAgent(Session session, String requestType)Determine if the session may arrange for agent forwarding.static AgentForwardingFilterof(boolean enabled)
-
-
-
Field Detail
-
DEFAULT
static final AgentForwardingFilter DEFAULT
-
-
Method Detail
-
canForwardAgent
boolean canForwardAgent(Session session, String requestType)
Determine if the session may arrange for agent forwarding.
This server process will open a new listen socket locally and export the address in the
SshAgent.SSH_AUTHSOCKET_ENV_NAMEenvironment variable.- Parameters:
session- TheSessionrequesting permission to forward the agent.requestType- The request type string that triggered this call- Returns:
- true if the agent forwarding is permitted, false if denied.
-
of
static AgentForwardingFilter of(boolean enabled)
-
-