mirror of
https://codeberg.org/PGPainless/vks-java.git
synced 2025-12-05 04:51:08 +01:00
testing2.keys.openpgp.org is no longer available. Therefore we move to testing.keys.openpgp.org. Furthermore, we upload the test key with its userid, so we can as well fetch it by user-id too. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||
| README.md | ||
VKS-Java
Client Side API for Communicating with Verifying Key Servers.
VKS vks = new VKSImpl("https://keys.openpgp.org/");
// Key Discovery via Email, key-id or fingerprint
InputStream bobsKey = vks.get().byEmail("bob@pgpainless.org");
// Upload Key to the VKS
InputStream myKey = ...
Upload.Response uploadResponse = vks.upload().cert(myKey);
// Request email verification of user-ids
RequestVerify.Response verifyResponse = vks.requestVerification()
.forEmailAddress("bob@pgpainless.org")
.execute(uploadResponse.getToken());