Class ClientConfig
java.lang.Object
io.github.mahmoudimus.quic.connection.ClientConfig
How a client connects: its TLS configuration (trust, server name, ALPN, 0-RTT), the transport
settings, the QUIC version and the
SessionCache that keeps session tickets and NEW_TOKEN
tokens between connections. Immutable and shareable.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientConfig.BuilderA builder.The cache of session tickets and tokens connections use.tls()The TLS configuration.The transport settings.version()The QUIC version connections start with.
-
Method Details
-
sessionCache
The cache of session tickets and tokens connections use.- Returns:
- the cache, or null to leave it to the caller (
QuicClientthen uses one of its own)
-
builder
A builder.- Parameters:
tls- the TLS configuration, with ALPN and the trust to check the server with- Returns:
- a new builder
-
tls
The TLS configuration.- Returns:
- the configuration
-
transport
The transport settings.- Returns:
- the settings
-
version
The QUIC version connections start with.- Returns:
- the version
-