Interface representing operations with Virgil Cards service.
More...
#include <CardClientInterface.h>
|
virtual std::future< models::RawSignedModel > | publishCard (const models::RawSignedModel &model, const std::string &token) const =0 |
| Creates Virgil Card instance on the Virgil Cards Service. Also makes the Card accessible for search/get queries from other users. RawSignedModel should contain appropriate signatures. More...
|
|
virtual std::future< models::GetCardResponse > | getCard (const std::string &cardId, const std::string &token) const =0 |
| Returns GetCardResponse with RawSignedModel of card from the Virgil Cards Service with given ID, if exists. More...
|
|
virtual std::future< std::vector< models::RawSignedModel > > | searchCards (const std::string &identity, const std::string &token) const =0 |
| Performs search of Virgil Cards using given identity on the Virgil Cards Service. More...
|
|
virtual | ~CardClientInterface ()=default |
| Virtual destructor.
|
|
Interface representing operations with Virgil Cards service.
virtual std::future<models::GetCardResponse> virgil::sdk::client::CardClientInterface::getCard |
( |
const std::string & |
cardId, |
|
|
const std::string & |
token |
|
) |
| const |
|
pure virtual |
Returns GetCardResponse with RawSignedModel of card from the Virgil Cards Service with given ID, if exists.
- Parameters
-
cardId | std::string with unique Virgil Card identifier |
token | std::string with AccessTokenInterface implementation |
- Returns
- std::future with GetCardResponse if Card found
Implemented in virgil::sdk::client::CardClient.
Creates Virgil Card instance on the Virgil Cards Service. Also makes the Card accessible for search/get queries from other users. RawSignedModel should contain appropriate signatures.
- Parameters
-
model | signed RawSignedModel to publish |
token | std::string with AccessTokenInterface implementation |
- Returns
- std::future with RawSignedModel of published Card
Implemented in virgil::sdk::client::CardClient.
virtual std::future<std::vector<models::RawSignedModel> > virgil::sdk::client::CardClientInterface::searchCards |
( |
const std::string & |
identity, |
|
|
const std::string & |
token |
|
) |
| const |
|
pure virtual |
Performs search of Virgil Cards using given identity on the Virgil Cards Service.
- Parameters
-
identity | identity of cards to search |
token | std::string with AccessTokenInterface implementation |
- Returns
- std::future with std::vector with RawSignedModels of matched Virgil Cards
Implemented in virgil::sdk::client::CardClient.
The documentation for this class was generated from the following file: