Interface KexExtensionParser<T>

    • Method Detail

      • parseExtension

        default T parseExtension​(byte[] data)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseExtension

        default T parseExtension​(byte[] data,
                                 int off,
                                 int len)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseExtension

        T parseExtension​(Buffer buffer)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • putExtension

        void putExtension​(T value,
                          Buffer buffer)
                   throws java.io.IOException
        Adds the name + value to the buffer
        Parameters:
        value - The value of the extension
        buffer - The target Buffer
        Throws:
        java.io.IOException - If failed to encode