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();