Virgil implementation of CardClientInterface.
More...
#include <CardClient.h>
Virgil implementation of CardClientInterface.
virgil::sdk::client::CardClient::CardClient |
( |
std::string |
serviceUrl = "https://api.virgilsecurity.com" | ) |
|
Constructor.
- Parameters
-
serviceUrl | std::string with URL of service client will use |
std::future<models::GetCardResponse> virgil::sdk::client::CardClient::getCard |
( |
const std::string & |
cardId, |
|
|
const std::string & |
token |
|
) |
| const |
|
overridevirtual |
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
Implements virgil::sdk::client::CardClientInterface.
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
Implements virgil::sdk::client::CardClientInterface.
std::future<std::vector<models::RawSignedModel> > virgil::sdk::client::CardClient::searchCards |
( |
const std::string & |
identity, |
|
|
const std::string & |
token |
|
) |
| const |
|
overridevirtual |
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
Implements virgil::sdk::client::CardClientInterface.
const std::string& virgil::sdk::client::CardClient::serviceUrl |
( |
| ) |
const |
Getter.
- Returns
- std::string with URL of service client use
The documentation for this class was generated from the following file: