Virgil implementation of CardVerifierInterface.
More...
#include <VirgilCardVerifier.h>
|
|
static const std::string | selfSignerIdentifier_ |
| | Signer identifier for self signatures.
|
| |
|
static const std::string | virgilSignerIdentifier_ |
| | Signer identifier for Virgil Cards Service signature.
|
| |
|
static const std::string | virgilPublicKeyBase64_ |
| | Base64 encoded string with Virgil Service's Public Key for verifying Virgil Cards Service signature.
|
| |
Virgil implementation of CardVerifierInterface.
- Note
- By default verifies Card's self signature and Virgil Cards Service signature
| virgil::sdk::cards::verification::VirgilCardVerifier::VirgilCardVerifier |
( |
std::shared_ptr< crypto::Crypto > |
crypto, |
|
|
std::vector< Whitelist > |
whitelists = std::vector< Whitelist >(), |
|
|
bool |
verifySelfSignature = true, |
|
|
bool |
verifyVirgilSignature = true |
|
) |
| |
Constructor.
- Parameters
-
| crypto | std::shared_ptr to Crypto instance |
| whitelists | std::vector with collections of verifiers |
| verifySelfSignature | VirgilCardVerifier will verify self signature if true |
| verifyVirgilSignature | VirgilCardVerifier will verify Virgil Cards Service signature if true |
- Note
- VirgilCardVerifier verifies Card if it contains signature from AT LEAST one verifier from EACH Whitelist
| const std::shared_ptr<crypto::Crypto>& virgil::sdk::cards::verification::VirgilCardVerifier::crypto |
( |
| ) |
const |
Getter.
- Returns
- std::shared_ptr to Crypto instance
| bool virgil::sdk::cards::verification::VirgilCardVerifier::verifyCard |
( |
const Card & |
card | ) |
const |
|
overridevirtual |
| bool virgil::sdk::cards::verification::VirgilCardVerifier::verifySelfSignature |
( |
| ) |
const |
| bool virgil::sdk::cards::verification::VirgilCardVerifier::verifyVirgilSignature |
( |
| ) |
const |
Getter
- Returns
- true if VirgilCardVerifier will verify Virgil Cards Service signature, false otherwise
Getter.
- Returns
- Public Key of Virgil Cards Service
| const std::vector<Whitelist>& virgil::sdk::cards::verification::VirgilCardVerifier::whitelists |
( |
| ) |
const |
Getter.
- Returns
- std::vector with collections of verifiers
The documentation for this class was generated from the following file: