Interface QuicResetTokenGenerator
public interface QuicResetTokenGenerator
Generate
stateless reset tokens to use.
-
Method Summary
Modifier and TypeMethodDescriptionnewResetToken(ByteBuffer cid) Generate a reset token to use for the given connection id.static QuicResetTokenGeneratorReturn aQuicResetTokenGeneratorwhich generates new reset tokens by signing the given input.
-
Method Details
-
newResetToken
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
Return aQuicResetTokenGeneratorwhich generates new reset tokens by signing the given input.- Returns:
- a
QuicResetTokenGeneratorwhich generates new reset tokens by signing the given input.
-