Virgil Security C++ SDK
Public Member Functions | Static Public Member Functions | List of all members
virgil::sdk::client::models::RawSignedModel Class Reference

Represents model in binary form which can have signatures and corresponds to Virgil Cards Service model. More...

#include <RawSignedModel.h>

Public Member Functions

 RawSignedModel (VirgilByteArray contentSnapshot)
 Constructor. More...
 
std::string exportAsBase64EncodedString () const
 Exports RawSignedModel as base64 encoded std::string. More...
 
std::string exportAsJson () const
 Exports RawSignedModel as json std::string. More...
 
const VirgilByteArray & contentSnapshot () const
 Getter. More...
 
const std::vector< RawSignaturesignatures () const
 Getter. More...
 
void addSignature (const RawSignature &newSignature)
 Adds new signature. More...
 

Static Public Member Functions

static RawSignedModel importFromBase64EncodedString (const std::string &data)
 Initializes RawSignedModel from base64 encoded std::string. More...
 
static RawSignedModel importFromJson (const std::string &data)
 Initializes RawSignedModel from json std::string. More...
 

Detailed Description

Represents model in binary form which can have signatures and corresponds to Virgil Cards Service model.

Constructor & Destructor Documentation

virgil::sdk::client::models::RawSignedModel::RawSignedModel ( VirgilByteArray  contentSnapshot)

Constructor.

Parameters
contentSnapshotdata with snapshot of RawCardContent

Member Function Documentation

void virgil::sdk::client::models::RawSignedModel::addSignature ( const RawSignature newSignature)

Adds new signature.

Parameters
newSignatureRawSignature to add
const VirgilByteArray& virgil::sdk::client::models::RawSignedModel::contentSnapshot ( ) const

Getter.

Returns
data with snapshot of RawCardContent
std::string virgil::sdk::client::models::RawSignedModel::exportAsBase64EncodedString ( ) const

Exports RawSignedModel as base64 encoded std::string.

Returns
base64 encoded std::string with RawSignedModel
std::string virgil::sdk::client::models::RawSignedModel::exportAsJson ( ) const

Exports RawSignedModel as json std::string.

Returns
json std::string with RawSignedModel
static RawSignedModel virgil::sdk::client::models::RawSignedModel::importFromBase64EncodedString ( const std::string &  data)
static

Initializes RawSignedModel from base64 encoded std::string.

Parameters
database64 encoded std::string with RawSignedModel
Returns
RawSignedModel instance
static RawSignedModel virgil::sdk::client::models::RawSignedModel::importFromJson ( const std::string &  data)
static

Initializes RawSignedModel from json std::string.

Parameters
datajson std::string with RawSignedModel
Returns
RawSignedModel instance
const std::vector<RawSignature> virgil::sdk::client::models::RawSignedModel::signatures ( ) const

Getter.

Returns
std::vector with RawSignatures of Card

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