1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-25 04:54:49 +02:00

Remove CertificateAuthority interface

This commit is contained in:
Paul Schaub 2023-06-29 18:03:54 +02:00
parent 9946f6bf83
commit 9befc759f5
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 1 additions and 28 deletions

View file

@ -1,21 +0,0 @@
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.wot;
import org.bouncycastle.openpgp.PGPPublicKeyRing;
public interface CertificateAuthority {
/**
* Returns <pre>true</pre>, 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);
}

View file

@ -55,7 +55,7 @@ import pgp.certificate_store.exception.BadDataException;
*
* @see <a href="https://sequoia-pgp.gitlab.io/sequoia-wot/">OpenPGP Web of Trust</a>
*/
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();