This guide shows how to validate a on a device. As previously noted each Virgil Card contains a Digital signature that provides data integrity for the Virgil Card over its life-cycle. Therefore, developers can verify the Digital Signature at any time.
During the validation process we verify, by default, two signatures:
Additionally, developers can verify the .
See more information about the Virgil Card's signatures, with our Virgil Card Service endpoint.
Set up your project environment before you begin to validate a Virgil Card, with the getting started guide.
In order to validate the signature of the Virgil Card owner, , and the Application Server, we need to:
VirgilBuffer appPublicKey = VirgilBuffer.from("[YOUR_APP_PUBLIC_KEY_HERE]",
// initialize High Level Api with custom verifiers
VirgilApiContext context = new VirgilApiContext("[YOUR_ACCESS_TOKEN_HERE]");
new CardVerifierInfo("[YOUR_APP_CARD_ID_HERE]", appPublicKey)));
VirgilApi virgil = new VirgilApiImpl(context);
VirgilCards aliceCards = virgil.getCards().find("alice");