Class CryptFilter

java.lang.Object
org.apache.sshd.common.filter.IoFilter
org.apache.sshd.common.session.filters.CryptFilter
All Implemented Interfaces:
Filter, Owned<FilterContext>, CryptStatisticsProvider

public class CryptFilter extends IoFilter implements CryptStatisticsProvider
A filter that decrypts incoming packets and encrypts outgoing ones.
  • Field Details

    • MAX_PADDING

      public static final int MAX_PADDING
      The maximum padding length we use. RFC 4253: at least 4 bytes padding, at most 255 bytes.

      Keep the padding size <= 127, though: JSch has a bug where it reads the pad byte as a signed value when compression is used!

      See Also:
    • MAX_TAG_LENGTH

      public static final int MAX_TAG_LENGTH
      An arbitrary constant >= the largest authentication tag size we will ever have.
      See Also:
  • Constructor Details

    • CryptFilter

      public CryptFilter()
  • Method Details