Add vks-java/README

This commit is contained in:
Paul Schaub 2022-04-06 14:11:20 +02:00
parent d5f3ca9ea1
commit 352f6d3c7f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

28
vks-java/README.md Normal file
View file

@ -0,0 +1,28 @@
<!--
SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
SPDX-License-Identifier: Apache-2.0
-->
# VKS-Java
[![javadoc](https://javadoc.io/badge2/org.pgpainless/vks-java/javadoc.svg)](https://javadoc.io/doc/org.pgpainless/vks-java)
[![Maven Central](https://badgen.net/maven/v/maven-central/org.pgpainless/vks-java)](https://search.maven.org/artifact/org.pgpainless/vks-java)
Client Side API for Communicating with Verifying Key Servers.
```java
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());
```