mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-05 03:55:58 +01:00
Remove CertificateAuthority interface
This commit is contained in:
parent
fb505548db
commit
d9b5783e5e
2 changed files with 1 additions and 28 deletions
|
@ -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);
|
||||
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue