Interface ForwardingFilter

    • Method Detail

      • getForwardedPort

        SshdSocketAddress getForwardedPort​(int remotePort)
        Parameters:
        remotePort - The remote port
        Returns:
        The local SshdSocketAddress that the remote port is forwarded to
      • localPortForwardingRequested

        SshdSocketAddress localPortForwardingRequested​(SshdSocketAddress local)
                                                throws java.io.IOException
        Called when the other side requested a remote port forward.
        Parameters:
        local - The request address
        Returns:
        The bound local SshdSocketAddress - null if not allowed to forward
        Throws:
        java.io.IOException - If failed to handle request
      • localPortForwardingCancelled

        void localPortForwardingCancelled​(SshdSocketAddress local)
                                   throws java.io.IOException
        Called when the other side cancelled a remote port forward.
        Parameters:
        local - The local SshdSocketAddress
        Throws:
        java.io.IOException - If failed to handle request