@FunctionalInterface public static interface AbstractChannel.PacketValidator
AbstractChannel.PacketValidator can validate packet lengths. Used for SshConstants.SSH_MSG_CHANNEL_DATA and
SshConstants.SSH_MSG_CHANNEL_EXTENDED_DATA messages.| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(long packetSize,
long maximumPacketSize,
boolean extendedData)
Tells whether a packet received of
len bytes is valid given a channel's maximumPacketSize. |
boolean isValid(long packetSize,
long maximumPacketSize,
boolean extendedData)
len bytes is valid given a channel's maximumPacketSize.packetSize - as read from the SSH packetmaximumPacketSize - from the channel's local windowextendedData - whether it's a SshConstants.SSH_MSG_CHANNEL_EXTENDED_DATA packettrue if the packet is to be considered valid.Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.