Package io.github.mahmoudimus.quic.tls
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 TypeMethodDescriptiondefault byte[]encode(HelloContext context) 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 inputscipherSuites- the hello's cipher suitesothers- the hello's other extensions, in order (withoutpre_shared_key, which the client adds after them: its length isHelloContext.pskLength())- Returns:
- the body, or null to leave the extension out of this hello
-
encode
Description copied from interface:ExtensionSpec.BodyThe body for this hello.- Specified by:
encodein interfaceExtensionSpec.Body- Parameters:
context- the hello's per-connection inputs- Returns:
- the body, or null to leave the extension out of this hello
-