Virgil Security C++ SDK
|
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< RawSignature > | signatures () 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... | |
Represents model in binary form which can have signatures and corresponds to Virgil Cards Service model.
virgil::sdk::client::models::RawSignedModel::RawSignedModel | ( | VirgilByteArray | contentSnapshot | ) |
Constructor.
contentSnapshot | data with snapshot of RawCardContent |
void virgil::sdk::client::models::RawSignedModel::addSignature | ( | const RawSignature & | newSignature | ) |
Adds new signature.
newSignature | RawSignature to add |
const VirgilByteArray& virgil::sdk::client::models::RawSignedModel::contentSnapshot | ( | ) | const |
Getter.
std::string virgil::sdk::client::models::RawSignedModel::exportAsBase64EncodedString | ( | ) | const |
Exports RawSignedModel as base64 encoded std::string.
std::string virgil::sdk::client::models::RawSignedModel::exportAsJson | ( | ) | const |
Exports RawSignedModel as json std::string.
|
static |
Initializes RawSignedModel from base64 encoded std::string.
data | base64 encoded std::string with RawSignedModel |
|
static |
Initializes RawSignedModel from json std::string.
data | json std::string with RawSignedModel |
const std::vector<RawSignature> virgil::sdk::client::models::RawSignedModel::signatures | ( | ) | const |
Getter.