Interface ExtensionSpec.WholeHelloBody

All Superinterfaces:
ExtensionSpec.Body
Enclosing class:
ExtensionSpec
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ExtensionSpec.WholeHelloBody extends ExtensionSpec.Body
A body made from the rest of the hello, as Firefox's GREASE ECH is sized from the inner hello it would encrypt: encoded after the other extensions' bodies.
  • Method Summary

    Modifier and Type
    Method
    Description
    default byte[]
    The body for this hello.
    byte[]
    encode(HelloContext context, int[] cipherSuites, List<io.github.mahmoudimus.quic.tls.HandshakeMessage.Extension> others)
    The body for this hello.
  • Method Details

    • encode

      byte[] encode(HelloContext context, int[] cipherSuites, List<io.github.mahmoudimus.quic.tls.HandshakeMessage.Extension> others)
      The body for this hello.
      Parameters:
      context - the hello's per-connection inputs
      cipherSuites - the hello's cipher suites
      others - the hello's other extensions, in order (without pre_shared_key, which the client adds after them: its length is HelloContext.pskLength())
      Returns:
      the body, or null to leave the extension out of this hello
    • encode

      default byte[] encode(HelloContext context)
      Description copied from interface: ExtensionSpec.Body
      The body for this hello.
      Specified by:
      encode in interface ExtensionSpec.Body
      Parameters:
      context - the hello's per-connection inputs
      Returns:
      the body, or null to leave the extension out of this hello