mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2025-09-09 03:09:39 +02:00
Add javadoc and move http-independent WKDFetcher logic to AbstractWKDFetchet class.
This commit is contained in:
parent
9abe217de0
commit
5613d42baf
8 changed files with 218 additions and 62 deletions
|
@ -4,6 +4,10 @@
|
|||
|
||||
package pgp.wkd.cli;
|
||||
|
||||
/**
|
||||
* Exception that gets thrown when an OpenPGP certificate is not carrying a User-ID binding for the email address
|
||||
* that was used to look the certificate up via WKD.
|
||||
*/
|
||||
public class MissingUserIdException extends Exception {
|
||||
|
||||
public MissingUserIdException() {
|
||||
|
|
|
@ -8,8 +8,8 @@ import org.bouncycastle.bcpg.ArmoredOutputStream;
|
|||
import org.bouncycastle.openpgp.PGPPublicKeyRing;
|
||||
import org.pgpainless.PGPainless;
|
||||
import org.pgpainless.key.info.KeyRingInfo;
|
||||
import pgp.wkd.IWKDFetcher;
|
||||
import pgp.wkd.JavaHttpRequestWKDFetcher;
|
||||
import pgp.wkd.AbstractWKDFetcher;
|
||||
import pgp.wkd.HttpUrlConnectionWKDFetcher;
|
||||
import pgp.wkd.WKDAddress;
|
||||
import pgp.wkd.WKDAddressHelper;
|
||||
import pgp.wkd.cli.MissingUserIdException;
|
||||
|
@ -40,7 +40,7 @@ public class Fetch implements Runnable {
|
|||
)
|
||||
boolean armor = false;
|
||||
|
||||
IWKDFetcher fetcher = new JavaHttpRequestWKDFetcher();
|
||||
AbstractWKDFetcher fetcher = new HttpUrlConnectionWKDFetcher();
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue