@FunctionalInterface public interface AgentForwardingFilter
Modifier and Type | Field and Description |
---|---|
static AgentForwardingFilter |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
boolean |
canForwardAgent(Session session,
String requestType)
Determine if the session may arrange for agent forwarding.
|
static AgentForwardingFilter |
of(boolean enabled) |
static final AgentForwardingFilter DEFAULT
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_NAME
environment
variable.
session
- The Session
requesting permission to forward the agent.requestType
- The request type string that triggered this callstatic AgentForwardingFilter of(boolean enabled)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.