Package org.apache.sshd.server.forward
Interface X11ForwardingFilter
-
- 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 X11ForwardingFilter
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static X11ForwardingFilterDEFAULT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanForwardX11(Session session, String requestType)Determine if the session may arrange for X11 forwarding.static X11ForwardingFilterof(boolean enabled)
-
-
-
Field Detail
-
DEFAULT
static final X11ForwardingFilter DEFAULT
-
-
Method Detail
-
canForwardX11
boolean canForwardX11(Session session, String requestType)
Determine if the session may arrange for X11 forwarding.
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.
- Parameters:
session- TheSessionrequesting permission to forward X11 connections.requestType- The request type string that triggered this call- Returns:
- true if the X11 forwarding is permitted, false if denied.
-
of
static X11ForwardingFilter of(boolean enabled)
-
-