Class Decoder

java.lang.Object
net.schmizz.sshj.transport.Converter
net.schmizz.sshj.transport.Decoder

final class Decoder extends Converter
Decodes packets from the SSH binary protocol per the current algorithms.
  • Field Details

    • MAX_PACKET_LEN

      private static final int MAX_PACKET_LEN
      See Also:
    • log

      private final org.slf4j.Logger log
    • packetHandler

      private final SSHPacketHandler packetHandler
      What we pass decoded packets to
    • inputBuffer

      private final SSHPacket inputBuffer
      Buffer where as-yet undecoded data lives
    • uncompressBuffer

      private final SSHPacket uncompressBuffer
      Used in case compression is active to store the uncompressed data
    • macResult

      private byte[] macResult
      MAC result is stored here
    • packetLength

      private int packetLength
      -1 if packet length not yet been decoded, else the packet length
    • needed

      private int needed
      How many bytes do we need, before a call to decode() can succeed at decoding at least packet length, OR the whole packet?
  • Constructor Details

  • Method Details