proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
TicketCipher.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#pragma once
10
11
#include <
fizz/server/ResumptionState.h
>
12
#include <
folly/Optional.h
>
13
#include <
folly/futures/Future.h
>
14
#include <
folly/io/IOBuf.h
>
15
16
namespace
fizz
{
17
namespace
server {
18
22
class
TicketCipher
{
23
public
:
24
virtual
~TicketCipher
() =
default
;
25
29
virtual
folly::Future<folly::Optional<std::pair<Buf, std::chrono::seconds>
>>
30
encrypt
(
ResumptionState
resState)
const
= 0;
31
38
virtual
folly::Future<std::pair<PskType, folly::Optional<ResumptionState>
>>
39
decrypt
(std::unique_ptr<folly::IOBuf> encryptedTicket)
const
= 0;
40
};
41
}
// namespace server
42
}
// namespace fizz
ResumptionState.h
IOBuf.h
fizz::server::TicketCipher
Definition:
TicketCipher.h:22
fizz::server::TicketCipher::encrypt
virtual folly::Future< folly::Optional< std::pair< Buf, std::chrono::seconds > > > encrypt(ResumptionState resState) const =0
fizz::server::TicketCipher::decrypt
virtual folly::Future< std::pair< PskType, folly::Optional< ResumptionState > > > decrypt(std::unique_ptr< folly::IOBuf > encryptedTicket) const =0
fizz::server::TicketCipher::~TicketCipher
virtual ~TicketCipher()=default
Future.h
fizz
Definition:
Actions.h:16
folly::Future
Definition:
FiberManagerInternal.h:46
fizz::server::ResumptionState
Definition:
ResumptionState.h:19
Optional.h
proxygen
fizz
fizz
server
TicketCipher.h
Generated by
1.8.11