Class EarlyDataExtension

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

public class EarlyDataExtension extends Object implements Extension
TLS Early Data Indication extension. See https://tools.ietf.org/html/rfc8446#section-4.2.10
  • Constructor Details

    • EarlyDataExtension

      public EarlyDataExtension()
    • EarlyDataExtension

      public EarlyDataExtension(long maxEarlyDataSize)
  • Method Details

    • parse

      public static EarlyDataExtension parse(ByteBuffer buffer, TlsConstants.HandshakeType context) throws DecodeErrorException
      Parses an early data extension from a byte stream.
      Parameters:
      buffer -
      context - indicates in which handshake message the extension occurs
      Throws:
      DecodeErrorException
    • 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:
    • getMaxEarlyDataSize

      public long getMaxEarlyDataSize()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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