mirror of
https://codeberg.org/PGPainless/cert-d-java.git
synced 2024-11-26 01:12:07 +01:00
Add javadoc
This commit is contained in:
parent
4ce9f46846
commit
2758c3efb8
3 changed files with 17 additions and 0 deletions
|
@ -35,12 +35,20 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* Implementation of {@link PGPCertificateDirectory.Backend} which stores certificates in a directory structure.
|
||||
*
|
||||
* @see <a href="https://sequoia-pgp.gitlab.io/pgp-cert-d/#name-implementation">Shared PGP Certificate Directory</a>
|
||||
*/
|
||||
public class FileBasedCertificateDirectoryBackend implements PGPCertificateDirectory.Backend {
|
||||
|
||||
private abstract static class Lazy<E> {
|
||||
abstract E get() throws BadDataException;
|
||||
}
|
||||
|
||||
/**
|
||||
* Locking mechanism which uses a lock file to synchronize write-access to the store.
|
||||
*/
|
||||
private static class FileLockingMechanism implements PGPCertificateDirectory.LockingMechanism {
|
||||
|
||||
private final File lockFile;
|
||||
|
@ -364,6 +372,9 @@ public class FileBasedCertificateDirectoryBackend implements PGPCertificateDirec
|
|||
return getTag(certFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Class to resolve file names from certificate fingerprints / special names.
|
||||
*/
|
||||
public static class FilenameResolver {
|
||||
|
||||
private final File baseDirectory;
|
||||
|
|
|
@ -6,6 +6,9 @@ package pgp.cert_d.subkey_lookup;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* Factory class to instantiate {@link InMemorySubkeyLookup} objects.
|
||||
*/
|
||||
public class InMemorySubkeyLookupFactory implements SubkeyLookupFactory {
|
||||
@Override
|
||||
public SubkeyLookup createFileBasedInstance(File baseDirectory) {
|
||||
|
|
|
@ -6,6 +6,9 @@ package pgp.cert_d.subkey_lookup;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* Factory class to instantiate different {@link SubkeyLookup} implementations.
|
||||
*/
|
||||
public interface SubkeyLookupFactory {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue