QuicTokenHandler Type — netty Architecture
Architecture documentation for the QuicTokenHandler type/interface in QuicTokenHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 55214ad6_dfeb_c83c_c981_ed7204e39316["QuicTokenHandler"] 39d10334_e24e_0e86_7869_322a72063c8e["QuicTokenHandler.java"] 55214ad6_dfeb_c83c_c981_ed7204e39316 -->|defined in| 39d10334_e24e_0e86_7869_322a72063c8e style 55214ad6_dfeb_c83c_c981_ed7204e39316 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicTokenHandler.java lines 25–55
public interface QuicTokenHandler {
/**
* Generate a new token for the given destination connection id and address. This token is written to {@code out}.
* If no token should be generated and so no token validation should take place at all this method should return
* {@code false}.
*
* @param out {@link ByteBuf} into which the token will be written.
* @param dcid the destination connection id. The {@link ByteBuf#readableBytes()} will be at most
* {@link Quic#MAX_CONN_ID_LEN}.
* @param address the {@link InetSocketAddress} of the sender.
* @return {@code true} if a token was written and so validation should happen, {@code false} otherwise.
*/
boolean writeToken(ByteBuf out, ByteBuf dcid, InetSocketAddress address);
/**
* Validate the token and return the offset, {@code -1} is returned if the token is not valid.
*
* @param token the {@link ByteBuf} that contains the token. The ownership is not transferred.
* @param address the {@link InetSocketAddress} of the sender.
* @return the start index after the token or {@code -1} if the token was not valid.
*/
int validateToken(ByteBuf token, InetSocketAddress address);
/**
* Return the maximal token length.
*
* @return the maximal supported token length.
*/
int maxTokenLength();
}
Source
Frequently Asked Questions
What is the QuicTokenHandler type?
QuicTokenHandler is a type/interface in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicTokenHandler.java.
Where is QuicTokenHandler defined?
QuicTokenHandler is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicTokenHandler.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free