2022-08-09 17:50:15 +02:00
|
|
|
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
package pgp.cert_d;
|
|
|
|
|
2022-08-09 18:00:27 +02:00
|
|
|
import pgp.certificate.Certificate;
|
2022-08-09 17:50:15 +02:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
|
|
public interface ReadOnlyPGPCertificateDirectory {
|
|
|
|
|
|
|
|
Certificate getTrustRootCertificate()
|
|
|
|
throws IOException, BadDataException;
|
|
|
|
|
|
|
|
Certificate getByFingerprint(String fingerprint)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
|
|
|
Certificate getBySpecialName(String specialName)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
|
|
|
Iterator<Certificate> items();
|
|
|
|
|
|
|
|
Iterator<String> fingerprints();
|
|
|
|
}
|