From d9b5783e5e4bae2254e138c0cab07f7d911c896a Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Thu, 29 Jun 2023 18:03:54 +0200 Subject: [PATCH] Remove CertificateAuthority interface --- .../pgpainless/wot/CertificateAuthority.java | 21 ------------------- .../java/org/pgpainless/wot/WebOfTrust.java | 8 +------ 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 pgpainless-wot/src/main/java/org/pgpainless/wot/CertificateAuthority.java diff --git a/pgpainless-wot/src/main/java/org/pgpainless/wot/CertificateAuthority.java b/pgpainless-wot/src/main/java/org/pgpainless/wot/CertificateAuthority.java deleted file mode 100644 index 84f796bb..00000000 --- a/pgpainless-wot/src/main/java/org/pgpainless/wot/CertificateAuthority.java +++ /dev/null @@ -1,21 +0,0 @@ -// SPDX-FileCopyrightText: 2022 Paul Schaub -// -// SPDX-License-Identifier: Apache-2.0 - -package org.pgpainless.wot; - -import org.bouncycastle.openpgp.PGPPublicKeyRing; - -public interface CertificateAuthority { - - /** - * Returns
true
, if the given binding (certificate and user-id) is correct. - * Correct means, that the binding is trustworthy. - * - * @param certificate OpenPGP certificate - * @param userId user-id - * @return binding correctness - */ - boolean isAuthorized(PGPPublicKeyRing certificate, String userId); - -} diff --git a/pgpainless-wot/src/main/java/org/pgpainless/wot/WebOfTrust.java b/pgpainless-wot/src/main/java/org/pgpainless/wot/WebOfTrust.java index 971a8b28..64254d3d 100644 --- a/pgpainless-wot/src/main/java/org/pgpainless/wot/WebOfTrust.java +++ b/pgpainless-wot/src/main/java/org/pgpainless/wot/WebOfTrust.java @@ -55,7 +55,7 @@ import pgp.certificate_store.exception.BadDataException; * * @see OpenPGP Web of Trust */ -public class WebOfTrust implements CertificateAuthority { +public class WebOfTrust { private static final Logger LOGGER = LoggerFactory.getLogger(WebOfTrust.class); @@ -382,12 +382,6 @@ public class WebOfTrust implements CertificateAuthority { return value; } - @Override - public boolean isAuthorized(PGPPublicKeyRing certificate, String userId) { - // TODO: Heiko! Implement! - return false; - } - @Override public String toString() { return network.toString();