Package org.apache.sshd.common.channel
Interface AbstractChannel.PacketValidator
-
- Enclosing class:
- AbstractChannel
- 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 static interface AbstractChannel.PacketValidator
AAbstractChannel.PacketValidatorcan validate packet lengths. Used forSshConstants.SSH_MSG_CHANNEL_DATAandSshConstants.SSH_MSG_CHANNEL_EXTENDED_DATAmessages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid(long packetSize, long maximumPacketSize, boolean extendedData)Tells whether a packet received oflenbytes is valid given a channel'smaximumPacketSize.
-
-
-
Method Detail
-
isValid
boolean isValid(long packetSize, long maximumPacketSize, boolean extendedData)Tells whether a packet received oflenbytes is valid given a channel'smaximumPacketSize.- Parameters:
packetSize- as read from the SSH packetmaximumPacketSize- from the channel's local windowextendedData- whether it's aSshConstants.SSH_MSG_CHANNEL_EXTENDED_DATApacket- Returns:
trueif the packet is to be considered valid.
-
-