Interface AbstractChannel.PacketValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isValid​(long packetSize, long maximumPacketSize, boolean extendedData)
      Tells whether a packet received of len bytes is valid given a channel's maximumPacketSize.
    • Method Detail

      • isValid

        boolean isValid​(long packetSize,
                        long maximumPacketSize,
                        boolean extendedData)
        Tells whether a packet received of len bytes is valid given a channel's maximumPacketSize.
        Parameters:
        packetSize - as read from the SSH packet
        maximumPacketSize - from the channel's local window
        extendedData - whether it's a SshConstants.SSH_MSG_CHANNEL_EXTENDED_DATA packet
        Returns:
        true if the packet is to be considered valid.