Package io.netty.handler.codec.quic
Interface QuicResetTokenGenerator
-
public interface QuicResetTokenGenerator
Generate stateless reset tokens to use.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.ByteBuffer
newResetToken(java.nio.ByteBuffer cid)
Generate a reset token to use for the given connection id.static QuicResetTokenGenerator
signGenerator()
Return aQuicResetTokenGenerator
which generates new reset tokens by signing the given input.
-
-
-
Method Detail
-
newResetToken
java.nio.ByteBuffer newResetToken(java.nio.ByteBuffer cid)
Generate a reset token to use for the given connection id. The returned token MUST be of length 16.- Parameters:
cid
- the connection id- Returns:
- a newly generated reset token
-
signGenerator
static QuicResetTokenGenerator signGenerator()
Return aQuicResetTokenGenerator
which generates new reset tokens by signing the given input.- Returns:
- a
QuicResetTokenGenerator
which generates new reset tokens by signing the given input.
-
-