Virgil Security C++ SDK
Public Member Functions | List of all members
virgil::sdk::client::CardClientInterface Class Referenceabstract

Interface representing operations with Virgil Cards service. More...

#include <CardClientInterface.h>

Inheritance diagram for virgil::sdk::client::CardClientInterface:
virgil::sdk::client::CardClient

Public Member Functions

virtual std::future< models::RawSignedModelpublishCard (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::GetCardResponsegetCard (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.
 

Detailed Description

Interface representing operations with Virgil Cards service.

Member Function Documentation

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
cardIdstd::string with unique Virgil Card identifier
tokenstd::string with AccessTokenInterface implementation
Returns
std::future with GetCardResponse if Card found

Implemented in virgil::sdk::client::CardClient.

virtual std::future<models::RawSignedModel> virgil::sdk::client::CardClientInterface::publishCard ( const models::RawSignedModel model,
const std::string &  token 
) const
pure virtual

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
modelsigned RawSignedModel to publish
tokenstd::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
identityidentity of cards to search
tokenstd::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: