Package io.github.mahmoudimus.quic.tls
Interface EchConfigProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Where a client finds a server's Encrypted Client Hello configurations (RFC 9849): typically the
ech parameter of the server's DNS HTTPS record (RFC 9848), looked up however the
application resolves names. Nothing here makes DNS queries.
With a list, the ClientHello the server's name is in is encrypted to one of its configurations and an outer ClientHello names the configuration's public name; without one, the client sends the profile's GREASE ECH extension, if it has one, as a browser does.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]echConfigList(String serverName) The server's ECHConfigList.
-
Method Details
-
echConfigList
The server's ECHConfigList.- Parameters:
serverName- the name the client is connecting to, as sent in the inner ClientHello- Returns:
- the serialized ECHConfigList (RFC 9849 section 4), with its two-byte length prefix; null to offer no ECH to this server
-