Class UnknownExtension

java.lang.Object
tech.kwik.agent15.extension.UnknownExtension
All Implemented Interfaces:
Extension

public class UnknownExtension extends Object implements Extension
  • Method Details

    • parse

      public static UnknownExtension parse(ByteBuffer buffer) throws DecodeErrorException
      Parses an extension that is not known to this implementation from a byte stream.
      Parameters:
      buffer -
      Throws:
      DecodeErrorException
    • getData

      public byte[] getData()
    • getType

      public int getType()
      Specified by:
      getType in interface Extension
      Returns:
      the extension type, as defined in https://www.rfc-editor.org/rfc/rfc8446.html#section-4.2
    • getBytes

      public byte[] getBytes()
      Description copied from interface: Extension
      Serializes the extension to a byte array, including the extension type and length.
      Specified by:
      getBytes in interface Extension
      Returns: