This guide shows how to revoke a Virgil CardEach Card contains attributes associated with the holder of the Private key and are used to prove the ownership of a Public key more ... from Virgil Services.
It may be helpful to review our Virgil Card Service Delete endpoint here for more examples.
Set up your project environment before you begin to revoke a Virgil Card, with the getting started guide.
In order to revoke a Virgil Card, we need to:
- Initialize the Virgil SDKThe SDK helps take tedious complexity out of coding by providing APIs for all of Virgil Services. and enter Application credentialsA necessary app-attribute that authorizes a developer to use the application. (App IDThis is an identifier, which uniquely identifies an Application at Virgil Services more ..., App KeyThis is a secure Private Key for your application that you receive during registration at Virgil Services more ..., App Key passwordA password set for an App Key that you receive during application registration at Virgil Services)
$virgilApiContext = VirgilApiContext::create(
VirgilApiContext::AccessToken => '[YOUR_ACCESS_TOKEN_HERE]',
VirgilApiContext::Credentials => new AppCredentials(
$virgilApi = new VirgilApi($virgilApiContext);
- Get Alice's Virgil Card by IDA unique identifier of a Virgil Card that is received after the Card's publication on Virgil Services more ... from Virgil ServicesVirgil Services is a group of cryptographic services that make up the Virgil Security infrastructure more ...
- Revoke Alice's Virgil Card from Virgil Services
// get a Virgil Card by ID
$aliceCard = $virgilApi->Cards->get('[ALICE_CARD_ID_HERE]');
// revoke a Virgil Card
Developers also can revoke a Virgil Card using Virgil CLI Commands.