libkazv
Kazv::OutboundGroupSession Class Reference

#include <outbound-group-session.hpp>

Public Member Functions

 OutboundGroupSession ()
 
 OutboundGroupSession (RandomTag, RandomData random, Timestamp creationTime)
 Constructs an OutboundGroupSession from custom random data. More...
 
 OutboundGroupSession (const OutboundGroupSession &that)
 
 OutboundGroupSession (OutboundGroupSession &&that)
 
OutboundGroupSessionoperator= (const OutboundGroupSession &that)
 
OutboundGroupSessionoperator= (OutboundGroupSession &&that)
 
 ~OutboundGroupSession ()
 
std::string encrypt (std::string plainText)
 
bool valid () const
 
std::string sessionKey ()
 
std::string initialSessionKey () const
 
std::string sessionId ()
 
int messageIndex ()
 
Timestamp creationTimeMs () const
 

Static Public Member Functions

static std::size_t constructRandomSize ()
 

Friends

void to_json (nlohmann::json &j, const OutboundGroupSession &s)
 
void from_json (const nlohmann::json &j, OutboundGroupSession &s)
 

Constructor & Destructor Documentation

◆ OutboundGroupSession() [1/4]

Kazv::OutboundGroupSession::OutboundGroupSession ( )
explicit

◆ OutboundGroupSession() [2/4]

Kazv::OutboundGroupSession::OutboundGroupSession ( RandomTag  ,
RandomData  random,
Timestamp  creationTime 
)

Constructs an OutboundGroupSession from custom random data.

Parameters
randomThe random data to use. Must be of at least size constructRandomSize().
creationTimeThe creation time of this OutboundGroupSession.

◆ OutboundGroupSession() [3/4]

Kazv::OutboundGroupSession::OutboundGroupSession ( const OutboundGroupSession that)

◆ OutboundGroupSession() [4/4]

Kazv::OutboundGroupSession::OutboundGroupSession ( OutboundGroupSession &&  that)

◆ ~OutboundGroupSession()

Kazv::OutboundGroupSession::~OutboundGroupSession ( )
default

Member Function Documentation

◆ constructRandomSize()

std::size_t Kazv::OutboundGroupSession::constructRandomSize ( )
static
Returns
The size of random data needed to construct an OutboundGroupSession.

◆ creationTimeMs()

Timestamp Kazv::OutboundGroupSession::creationTimeMs ( ) const

◆ encrypt()

std::string Kazv::OutboundGroupSession::encrypt ( std::string  plainText)

◆ initialSessionKey()

std::string Kazv::OutboundGroupSession::initialSessionKey ( ) const

◆ messageIndex()

int Kazv::OutboundGroupSession::messageIndex ( )

◆ operator=() [1/2]

OutboundGroupSession & Kazv::OutboundGroupSession::operator= ( const OutboundGroupSession that)

◆ operator=() [2/2]

OutboundGroupSession & Kazv::OutboundGroupSession::operator= ( OutboundGroupSession &&  that)

◆ sessionId()

std::string Kazv::OutboundGroupSession::sessionId ( )

◆ sessionKey()

std::string Kazv::OutboundGroupSession::sessionKey ( )

◆ valid()

bool Kazv::OutboundGroupSession::valid ( ) const

Friends And Related Function Documentation

◆ from_json

void from_json ( const nlohmann::json j,
OutboundGroupSession s 
)
friend

◆ to_json

void to_json ( nlohmann::json j,
const OutboundGroupSession s 
)
friend

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