mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Remove CertificateAuthority interface
This commit is contained in:
parent
9946f6bf83
commit
9befc759f5
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>
|
* @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);
|
private static final Logger LOGGER = LoggerFactory.getLogger(WebOfTrust.class);
|
||||||
|
|
||||||
|
@ -382,12 +382,6 @@ public class WebOfTrust implements CertificateAuthority {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isAuthorized(PGPPublicKeyRing certificate, String userId) {
|
|
||||||
// TODO: Heiko! Implement!
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return network.toString();
|
return network.toString();
|
||||||
|
|
Loading…
Reference in a new issue