proxygen
fizz::server::TicketCipher Class Referenceabstract

#include <TicketCipher.h>

Inheritance diagram for fizz::server::TicketCipher:
fizz::server::AeadTicketCipher< AeadType, CodecType, HkdfType > fizz::server::DualTicketCipher fizz::server::test::MockTicketCipher

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
 

Detailed Description

Interface for turning PSKs into ResumptionState, and vice versa.

Definition at line 22 of file TicketCipher.h.

Constructor & Destructor Documentation

virtual fizz::server::TicketCipher::~TicketCipher ( )
virtualdefault

Member Function Documentation

virtual folly::Future<std::pair<PskType, folly::Optional<ResumptionState> > > fizz::server::TicketCipher::decrypt ( std::unique_ptr< folly::IOBuf encryptedTicket) const
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().

virtual folly::Future<folly::Optional<std::pair<Buf, std::chrono::seconds> > > fizz::server::TicketCipher::encrypt ( ResumptionState  resState) const
pure virtual

The documentation for this class was generated from the following file: