Class QuicTokenHandler.TokenValidationResult
java.lang.Object
io.netty.handler.codec.quic.QuicTokenHandler.TokenValidationResult
- Enclosing interface:
QuicTokenHandler
The result of a token validation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a result that indicates the token is invalid.booleanisValid()Returnstrueif the token is valid.Returns a result that indicates the token is valid and the ODCID should be taken from the current destination connection id of the Initial packet.odcidFromToken(int offset) Returns a result that indicates the token is valid and the ODCID should be taken from the token suffix starting at the specified offset.
-
Method Details
-
invalidToken
Returns a result that indicates the token is invalid.- Returns:
- the invalid token result.
-
odcidFromToken
Returns a result that indicates the token is valid and the ODCID should be taken from the token suffix starting at the specified offset.This is typically used for tokens from Retry packets; see
QuicTokenHandler.validateToken(ByteBuf, InetSocketAddress, ByteBuf).- Parameters:
offset- the start index of the ODCID in the token.- Returns:
- the validation result.
-
odcidFromDestinationConnectionId
Returns a result that indicates the token is valid and the ODCID should be taken from the current destination connection id of the Initial packet.This is typically used for tokens from NEW_TOKEN frames; see
QuicTokenHandler.validateToken(ByteBuf, InetSocketAddress, ByteBuf).- Returns:
- the validation result.
-
isValid
public boolean isValid()Returnstrueif the token is valid.- Returns:
trueif the token is valid.
-