mirror of
https://codeberg.org/PGPainless/cert-d-java.git
synced 2025-09-10 11:49:39 +02:00
Increase coverage of PGPCertificateDirectory
This commit is contained in:
parent
f34c6d7735
commit
4ce9f46846
2 changed files with 39 additions and 1 deletions
|
@ -21,6 +21,10 @@ import java.util.Iterator;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
/**
|
||||
* Implementation of the {@link PGPCertificateDirectory.Backend} which stores key material in-memory.
|
||||
* It uses object locking with {@link #wait()} and {@link #notify()} to synchronize write-access.
|
||||
*/
|
||||
public class InMemoryCertificateDirectoryBackend implements PGPCertificateDirectory.Backend {
|
||||
|
||||
protected static class ObjectLockingMechanism implements PGPCertificateDirectory.LockingMechanism {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue