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-12 14:10:09 +02:00
|
|
|
import pgp.certificate_store.certificate.Certificate;
|
|
|
|
import pgp.certificate_store.exception.BadDataException;
|
|
|
|
import pgp.certificate_store.exception.BadNameException;
|
2022-08-09 17:50:15 +02:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
|
|
public interface ReadOnlyPGPCertificateDirectory {
|
|
|
|
|
|
|
|
Certificate getTrustRootCertificate()
|
|
|
|
throws IOException, BadDataException;
|
|
|
|
|
2022-08-24 13:04:28 +02:00
|
|
|
Certificate getTrustRootCertificateIfChanged(long tag)
|
|
|
|
throws IOException, BadDataException;
|
|
|
|
|
2022-08-09 17:50:15 +02:00
|
|
|
Certificate getByFingerprint(String fingerprint)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
2022-08-24 13:04:28 +02:00
|
|
|
Certificate getByFingerprintIfChanged(String fingerprint, long tag)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
2022-08-09 17:50:15 +02:00
|
|
|
Certificate getBySpecialName(String specialName)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
2022-08-24 13:04:28 +02:00
|
|
|
Certificate getBySpecialNameIfChanged(String specialName, long tag)
|
|
|
|
throws IOException, BadNameException, BadDataException;
|
|
|
|
|
2022-08-09 17:50:15 +02:00
|
|
|
Iterator<Certificate> items();
|
|
|
|
|
|
|
|
Iterator<String> fingerprints();
|
|
|
|
}
|