This guide shows how to load a private , which is stored on the device. The key must be loaded when Alice wants to some data, any encrypted content, and perform cryptographic operations.
Set up your project environment before you begin to load a Virgil Key, with the getting started guide.
In order to load the Virgil Key from the default storage:
VirgilApi virgil = new VirgilApiImpl("[YOUR_ACCESS_TOKEN_HERE]");
- Alice has to load her Virgil Key from the protected storage and enter the Virgil Key's password
// load a Virgil Key from storage
VirgilKey aliceKey = virgil.getKeys().load("[KEY_NAME]",
To load a Virgil Key from a specific storage, developers need to change the storage path during Virgil SDK initialization.