| 
    Virgil Security C++ SDK
    
   | 
 
Class responsible for signing RawSignerModel. More...
#include <ModelSigner.h>
Public Member Functions | |
| ModelSigner (std::shared_ptr< crypto::Crypto > crypto) | |
| Constructor.  More... | |
| const std::shared_ptr< crypto::Crypto > & | crypto () const | 
| Getter.  More... | |
| void | sign (client::models::RawSignedModel &model, const std::string &signer, const crypto::keys::PrivateKey &privateKey) const | 
| Adds signature to given RawSignedModel with provided signer and PrivateKey.  More... | |
| void | sign (client::models::RawSignedModel &model, const std::string &signer, const crypto::keys::PrivateKey &privateKey, const VirgilByteArray &additionalData) const | 
| Adds signature to given RawSignedModel with provided signer, PrivateKey and additional data.  More... | |
| void | sign (client::models::RawSignedModel &model, const std::string &signer, const crypto::keys::PrivateKey &privateKey, const std::unordered_map< std::string, std::string > &extraFields) const | 
| Adds signature to given RawSignedModel with provided signer, PrivateKey and additional data.  More... | |
| void | selfSign (client::models::RawSignedModel &model, const crypto::keys::PrivateKey &privateKey) const | 
| Adds owner's signature to given RawSignedModel using provided PrivateKey.  More... | |
| void | selfSign (client::models::RawSignedModel &model, const crypto::keys::PrivateKey &privateKey, const VirgilByteArray &additionalData) const | 
| Adds owner's signature to given RawSignedModel using provided PrivateKey and additional data.  More... | |
| void | selfSign (client::models::RawSignedModel &model, const crypto::keys::PrivateKey &privateKey, const std::unordered_map< std::string, std::string > &extraFields) const | 
| Adds owner's signature to given RawSignedModel using provided PrivateKey and additional data.  More... | |
Static Public Attributes | |
| static const std::string | selfSignerIdentifier | 
| signer identifier for self signatures  | |
Class responsible for signing RawSignerModel.
| virgil::sdk::cards::ModelSigner::ModelSigner | ( | std::shared_ptr< crypto::Crypto > | crypto | ) | 
Constructor.
| crypto | std::shared_ptr to Crypto instance | 
| const std::shared_ptr<crypto::Crypto>& virgil::sdk::cards::ModelSigner::crypto | ( | ) | const | 
Getter.
| void virgil::sdk::cards::ModelSigner::selfSign | ( | client::models::RawSignedModel & | model, | 
| const crypto::keys::PrivateKey & | privateKey | ||
| ) | const | 
Adds owner's signature to given RawSignedModel using provided PrivateKey.
| model | RawSignedModel to sign | 
| privateKey | PrivateKey to sign with | 
| void virgil::sdk::cards::ModelSigner::selfSign | ( | client::models::RawSignedModel & | model, | 
| const crypto::keys::PrivateKey & | privateKey, | ||
| const VirgilByteArray & | additionalData | ||
| ) | const | 
Adds owner's signature to given RawSignedModel using provided PrivateKey and additional data.
| model | RawSignedModel to sign | 
| privateKey | PrivateKey to sign with | 
| additionalData | additional data to sign with model | 
| void virgil::sdk::cards::ModelSigner::selfSign | ( | client::models::RawSignedModel & | model, | 
| const crypto::keys::PrivateKey & | privateKey, | ||
| const std::unordered_map< std::string, std::string > & | extraFields | ||
| ) | const | 
Adds owner's signature to given RawSignedModel using provided PrivateKey and additional data.
| model | RawSignedModel to sign | 
| privateKey | PrivateKey to sign with | 
| extraFields | std::unordered_map with additional data to sign with model | 
| void virgil::sdk::cards::ModelSigner::sign | ( | client::models::RawSignedModel & | model, | 
| const std::string & | signer, | ||
| const crypto::keys::PrivateKey & | privateKey | ||
| ) | const | 
Adds signature to given RawSignedModel with provided signer and PrivateKey.
| model | RawSignedModel to sign | 
| signer | identifier of signer | 
| privateKey | PrivateKey to sign with | 
| void virgil::sdk::cards::ModelSigner::sign | ( | client::models::RawSignedModel & | model, | 
| const std::string & | signer, | ||
| const crypto::keys::PrivateKey & | privateKey, | ||
| const VirgilByteArray & | additionalData | ||
| ) | const | 
Adds signature to given RawSignedModel with provided signer, PrivateKey and additional data.
| model | RawSignedModel to sign | 
| signer | identifier of signer | 
| privateKey | PrivateKey to sign with | 
| additionalData | additional data to sign with model | 
| void virgil::sdk::cards::ModelSigner::sign | ( | client::models::RawSignedModel & | model, | 
| const std::string & | signer, | ||
| const crypto::keys::PrivateKey & | privateKey, | ||
| const std::unordered_map< std::string, std::string > & | extraFields | ||
| ) | const | 
Adds signature to given RawSignedModel with provided signer, PrivateKey and additional data.
| model | RawSignedModel to sign | 
| signer | identifier of signer | 
| privateKey | PrivateKey to sign with | 
| extraFields | std::unordered_map with additional data to sign with model | 
 1.8.10