identt
Public Types | Public Member Functions | List of all members
identt::query::SignedJson Class Reference
Inheritance diagram for identt::query::SignedJson:
identt::store::LookupService identt::store::MailSmsService identt::store::PubKeyService identt::store::ThreePidService identt::query::MailSmsService< HttpServerT >

Public Types

using SignatureListT = std::vector<::identt::query::SignatureT >
 

Public Member Functions

 SignedJson ()
 Default Constructor. More...
 
virtual ~SignedJson ()
 Default Destructor. More...
 
void AddSign (::identt::utils::SharedTable::pointer stptr, const google::protobuf::Message *result, const ::identt::query::PubKeyT *pubkey, std::string &output, SignatureListT &signatures)
 AddSign: Add Signature pb, also adds older signatures. More...
 
void AddSign (::identt::utils::SharedTable::pointer stptr, const google::protobuf::Message *result, const google::protobuf::Message *uresult, const ::identt::query::PubKeyT *pubkey, std::string &output, SignatureListT &signatures)
 AddSign: Add Signature pb + unsigned, also adds older signatures. More...
 
void AddSign (::identt::utils::SharedTable::pointer stptr, const std::string input, const ::identt::query::PubKeyT *pubkey, std::string &output, SignatureListT &signatures)
 AddSign: Add Signature to canonnical json string, also adds older signatures , no unsigned. More...
 
void AddSign (::identt::utils::SharedTable::pointer stptr, const std::string input, const std::string uinput, const ::identt::query::PubKeyT *pubkey, std::string &output, SignatureListT &signatures)
 AddSign: Add Signature to canonnical json string, also adds older signatures , adds unsigned. More...
 
void VerifySign (::identt::utils::SharedTable::pointer stptr, const std::string input, const ::identt::query::PubKeyT *pubkey, std::string &output, std::string &uoutput, SignatureListT &signatures)
 VerifySign: Verify signature and get string. More...
 
void VerifySign (::identt::utils::SharedTable::pointer stptr, const std::string input, const ::identt::query::PubKeyT *pubkey, google::protobuf::Message *result, SignatureListT &signatures)
 VerifySign: Verify Signature pb no unsigned. More...
 
void VerifySign (::identt::utils::SharedTable::pointer stptr, const std::string input, const ::identt::query::PubKeyT *pubkey, google::protobuf::Message *result, google::protobuf::Message *uresult, SignatureListT &signatures)
 VerifySign: Verify Signature pb, with unsigned. More...
 

Constructor & Destructor Documentation

§ SignedJson()

identt::query::SignedJson::SignedJson ( )

Default Constructor.

§ ~SignedJson()

identt::query::SignedJson::~SignedJson ( )
virtual

Default Destructor.

Member Function Documentation

§ AddSign() [1/4]

void identt::query::SignedJson::AddSign ( ::identt::utils::SharedTable::pointer  stptr,
const google::protobuf::Message *  result,
const ::identt::query::PubKeyT *  pubkey,
std::string &  output,
SignatureListT &  signatures 
)

AddSign: Add Signature pb, also adds older signatures.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
resultconst google::protobuf::Message* result
pubkeyconst ::identt::query::PubKeyT* pubkey
outputstd::string& output to populate
signaturesSignatureListT& signatures to append
Returns
none

§ AddSign() [2/4]

void identt::query::SignedJson::AddSign ( ::identt::utils::SharedTable::pointer  stptr,
const google::protobuf::Message *  result,
const google::protobuf::Message *  uresult,
const ::identt::query::PubKeyT *  pubkey,
std::string &  output,
SignatureListT &  signatures 
)

AddSign: Add Signature pb + unsigned, also adds older signatures.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
resultconst google::protobuf::Message* result
uresultconst google::protobuf::Message* result unsigned part
pubkeyconst ::identt::query::PubKeyT* pubkey
outputstd::string& output to populate
signaturesSignatureListT& signatures to append
Returns
none

§ AddSign() [3/4]

void identt::query::SignedJson::AddSign ( ::identt::utils::SharedTable::pointer  stptr,
const std::string  input,
const ::identt::query::PubKeyT *  pubkey,
std::string &  output,
SignatureListT &  signatures 
)

AddSign: Add Signature to canonnical json string, also adds older signatures , no unsigned.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
inputconst std::string input string
pubkeyconst ::identt::query::PubKeyT* pubkey
outputstd::string& output to populate
signaturesSignatureListT& signatures to append
Returns
none

§ AddSign() [4/4]

void identt::query::SignedJson::AddSign ( ::identt::utils::SharedTable::pointer  stptr,
const std::string  input,
const std::string  uinput,
const ::identt::query::PubKeyT *  pubkey,
std::string &  output,
SignatureListT &  signatures 
)

AddSign: Add Signature to canonnical json string, also adds older signatures , adds unsigned.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
inputconst std::string input string
uinputconst std::string input string unsigned
pubkeyconst ::identt::query::PubKeyT* pubkey
outputstd::string& output to populate
signaturesSignatureListT& signatures to append
Returns
none

§ VerifySign() [1/3]

void identt::query::SignedJson::VerifySign ( ::identt::utils::SharedTable::pointer  stptr,
const std::string  input,
const ::identt::query::PubKeyT *  pubkey,
std::string &  output,
std::string &  uoutput,
SignatureListT &  signatures 
)

VerifySign: Verify signature and get string.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
inputconst std::string input string
pubkeyconst ::identt::query::PubKeyT* pubkey
outputstd::string& output to populate
uoutputstd::string& output to populate unsigned
signaturesSignatureListT& signatures to append
Returns
none

§ VerifySign() [2/3]

void identt::query::SignedJson::VerifySign ( ::identt::utils::SharedTable::pointer  stptr,
const std::string  input,
const ::identt::query::PubKeyT *  pubkey,
google::protobuf::Message *  result,
SignatureListT &  signatures 
)

VerifySign: Verify Signature pb no unsigned.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
inputstd::string input to get from
pubkeyconst ::identt::query::PubKeyT* pubkey
resultgoogle::protobuf::Message* result
signaturesSignatureListT& signatures to append
Returns
none

§ VerifySign() [3/3]

void identt::query::SignedJson::VerifySign ( ::identt::utils::SharedTable::pointer  stptr,
const std::string  input,
const ::identt::query::PubKeyT *  pubkey,
google::protobuf::Message *  result,
google::protobuf::Message *  uresult,
SignatureListT &  signatures 
)

VerifySign: Verify Signature pb, with unsigned.

Parameters
stptr::identt::utils::SharedTable::pointer stptr
inputconst std::string input to get from
pubkeyconst ::identt::query::PubKeyT* pubkey
resultgoogle::protobuf::Message* result
uresultgoogle::protobuf::Message* unsigned result
signaturesSignatureListT& signatures to append
Returns
none

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