Virgil Security C++ SDK
Public Member Functions | List of all members
virgil::sdk::cards::CardSignature Class Reference

Class representing Virgil Card Signature. More...

#include <CardSignature.h>

Public Member Functions

 CardSignature (std::string signer, VirgilByteArray signature, VirgilByteArray snapshot, std::unordered_map< std::string, std::string > extraFields)
 Constructor. More...
 
const std::string & signer () const
 Getter. More...
 
const VirgilByteArray & signature () const
 Getter. More...
 
const VirgilByteArray & snapshot () const
 Getter. More...
 
const std::unordered_map< std::string, std::string > & extraFields () const
 Getter. More...
 

Detailed Description

Class representing Virgil Card Signature.

Constructor & Destructor Documentation

virgil::sdk::cards::CardSignature::CardSignature ( std::string  signer,
VirgilByteArray  signature,
VirgilByteArray  snapshot,
std::unordered_map< std::string, std::string >  extraFields 
)

Constructor.

Parameters
signeridentifier of signer
signaturesignature data
snapshotadditional data
extraFieldsstd::unordered_map with additional data
Note
signer must be unique. Reserved values:
  • Self verifier: "self"
  • Virgil Service verifier: "virgil"

Member Function Documentation

const std::unordered_map<std::string, std::string>& virgil::sdk::cards::CardSignature::extraFields ( ) const

Getter.

Returns
std::unordered_map with additional data
const VirgilByteArray& virgil::sdk::cards::CardSignature::signature ( ) const

Getter.

Returns
signature data
const std::string& virgil::sdk::cards::CardSignature::signer ( ) const

Getter.

Returns
identifier of signer
const VirgilByteArray& virgil::sdk::cards::CardSignature::snapshot ( ) const

Getter.

Returns
additional data

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