Class representing Virgil Card.
More...
#include <Card.h>
Class representing Virgil Card.
virgil::sdk::cards::Card::Card |
( |
std::string |
identifier, |
|
|
std::string |
identity, |
|
|
crypto::keys::PublicKey |
publicKey, |
|
|
std::string |
version, |
|
|
std::time_t |
createdAt, |
|
|
VirgilByteArray |
contentSnapshot, |
|
|
bool |
isOutdated = false , |
|
|
std::vector< cards::CardSignature > |
signatures = std::vector< cards::CardSignature >() , |
|
|
std::string |
previousCardId = std::string() , |
|
|
std::shared_ptr< Card > |
previousCard = nullptr |
|
) |
| |
Contructor.
- Parameters
-
identifier | identifier of Virgil Card. Must be unique |
identity | identity of Virgil Card |
publicKey | Public Key of Virgil Card |
version | version of Virgil Card |
createdAt | std::time with creation date of Virgil Card |
contentSnapshot | VirgilByteArray with snapshot of corresponding RawCardContent |
isOutdated | true if Virgil Card is outdated, false otherwise |
signatures | std::vector with CardSignatures of Virgil Card |
previousCardId | identifier of outdated previous Virgil Card with same identity |
previousCard | std::shared_ptr to previous Virgil Card instance |
const VirgilByteArray& virgil::sdk::cards::Card::contentSnapshot |
( |
| ) |
const |
Getter.
- Returns
- VirgilByteArray with snapshot of corresponding RawCardContent
std::time_t virgil::sdk::cards::Card::createdAt |
( |
| ) |
const |
Getter.
- Returns
- std::time with creation date of Virgil Card
Builds RawSignedModel representing Card.
- Returns
- RawSignedModel representing Card
const std::string& virgil::sdk::cards::Card::identifier |
( |
| ) |
const |
Getter.
- Returns
- identifier of Virgil Card
const std::string& virgil::sdk::cards::Card::identity |
( |
| ) |
const |
Getter.
- Returns
- identity of Virgil Card
bool virgil::sdk::cards::Card::isOutdated |
( |
| ) |
const |
Getter.
- Returns
- true if Virgil Card is outdated, false otherwise
void virgil::sdk::cards::Card::isOutdated |
( |
bool |
newIsOutdated | ) |
|
Setter.
- Parameters
-
newIsOutdated | bool isOutdated to be set |
const std::shared_ptr<Card>& virgil::sdk::cards::Card::previousCard |
( |
| ) |
const |
Getter.
- Returns
- std::shared_ptr to previous Virgil Card instance
void virgil::sdk::cards::Card::previousCard |
( |
const std::shared_ptr< Card > & |
newPreviousCard | ) |
|
Setter.
- Parameters
-
newPreviousCard | previousCard to be set |
const std::string& virgil::sdk::cards::Card::previousCardId |
( |
| ) |
const |
Getter.
- Returns
- identifier of outdated previous Virgil Card with same identity
void virgil::sdk::cards::Card::previousCardId |
( |
const std::string & |
newPreviousCardId | ) |
|
Setter.
- Parameters
-
newPreviousCardId | std::string previousCardId to be set |
Getter.
- Returns
- Public Key of Virgil Card
Getter.
- Returns
- std::vector with CardSignatures of Virgil Card
const std::string& virgil::sdk::cards::Card::version |
( |
| ) |
const |
Getter.
- Returns
- version of Virgil Card
The documentation for this class was generated from the following file:
- include/virgil/sdk/cards/Card.h