proxygen
|
#include <TicketCipher.h>
Public Member Functions | |
virtual | ~TicketCipher ()=default |
virtual folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds > > > | encrypt (ResumptionState resState) const =0 |
virtual folly::Future< std::pair< PskType, folly::Optional< ResumptionState > > > | decrypt (std::unique_ptr< folly::IOBuf > encryptedTicket) const =0 |
Interface for turning PSKs into ResumptionState, and vice versa.
Definition at line 22 of file TicketCipher.h.
|
virtualdefault |
|
pure virtual |
Returns the ResumptionState for an opaque PSK, and the type of PSK (resumption or external).
Returns Rejected if the PSK is not recognized.
Implemented in fizz::server::test::MockTicketCipher, fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType >, and fizz::server::DualTicketCipher.
Referenced by fizz::sm::getResumptionState().
|
pure virtual |
Returns an opaque PSK for ResumptionState, and its validity time.
Implemented in fizz::server::test::MockTicketCipher, fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType >, and fizz::server::DualTicketCipher.