Class AbstractKexExtensionParser<T>

    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • AbstractKexExtensionParser

        protected AbstractKexExtensionParser​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface NamedResource
        Returns:
        The resource name
      • putExtension

        public void putExtension​(T value,
                                 Buffer buffer)
                          throws java.io.IOException
        Description copied from interface: KexExtensionParser
        Adds the name + value to the buffer
        Specified by:
        putExtension in interface KexExtensionParser<T>
        Parameters:
        value - The value of the extension
        buffer - The target Buffer
        Throws:
        java.io.IOException - If failed to encode
      • encode

        protected abstract void encode​(T value,
                                       Buffer buffer)
                                throws java.io.IOException
        Throws:
        java.io.IOException