18 template <
typename AeadType,
typename CodecType,
typename HkdfType>
29 {CodecType::Label.toString(), pskContext})) {}
63 std::unique_ptr<folly::IOBuf> encryptedTicket)
const override {
69 }
catch (
const std::exception& ex) {
70 VLOG(6) <<
"Failed to decode ticket, ex=" << ex.what();
80 std::chrono::seconds
validity_{std::chrono::hours(1)};
unique_ptr< IOBuf > encode(vector< HPACKHeader > &headers, HPACKEncoder &encoder)
AeadTokenCipher< AeadType, HkdfType > tokenCipher_
TokenBindingMessage decode(folly::io::Cursor &cursor)
constexpr detail::Map< Move > move
static constexpr StringPiece ticket
bool setTicketSecrets(const std::vector< folly::ByteRange > &ticketSecrets)
folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds > > > encrypt(ResumptionState resState) const override
AeadTicketCipher(std::string pskContext)
const FizzServerContext * context_
folly::Future< std::pair< PskType, folly::Optional< ResumptionState > > > decrypt(std::unique_ptr< folly::IOBuf > encryptedTicket) const override
std::chrono::seconds validity_
void setValidity(std::chrono::seconds validity)
void setContext(const FizzServerContext *context)