mirror of
https://codeberg.org/PGPainless/vks-java.git
synced 2024-11-22 07:22:06 +01:00
Add vks-java/README
This commit is contained in:
parent
d5f3ca9ea1
commit
352f6d3c7f
1 changed files with 28 additions and 0 deletions
28
vks-java/README.md
Normal file
28
vks-java/README.md
Normal 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());
|
||||
```
|
Loading…
Reference in a new issue