Class CSCertificateStoreH2MV
java.lang.Object
com.io7m.certusine.vanilla.internal.store.CSCertificateStoreH2MV
- All Implemented Interfaces:
CSCertificateStoreType,Closeable,AutoCloseable
A certificate store based on the H2 MVStore class.
-
Constructor Summary
ConstructorsConstructorDescriptionCSCertificateStoreH2MV(org.h2.mvstore.MVStore inStore, org.h2.mvstore.tx.TransactionStore inTXStore) A certificate store based on the H2 MVStore class. -
Method Summary
Modifier and TypeMethodDescriptionall()Obtain a read-only snapshot of all currently stored certificates.voidclose()booleandelete(String domain, CSCertificateName name) Delete the certificate with the given domain and name.find(String domain, CSCertificateName name) Find a certificate that has the given domain and name.booleanisClosed()voidput(CSCertificateStored certificate) Create or update a certificate.
-
Constructor Details
-
CSCertificateStoreH2MV
public CSCertificateStoreH2MV(org.h2.mvstore.MVStore inStore, org.h2.mvstore.tx.TransactionStore inTXStore) A certificate store based on the H2 MVStore class.- Parameters:
inStore- The MV storeinTXStore- The transaction store
-
-
Method Details
-
put
Description copied from interface:CSCertificateStoreTypeCreate or update a certificate.- Specified by:
putin interfaceCSCertificateStoreType- Parameters:
certificate- The certificate- Throws:
IOException- On I/O errors
-
find
Description copied from interface:CSCertificateStoreTypeFind a certificate that has the given domain and name.- Specified by:
findin interfaceCSCertificateStoreType- Parameters:
domain- The domainname- The certificate name- Returns:
- The certificate, if one exists
- Throws:
IOException- On errors
-
delete
Description copied from interface:CSCertificateStoreTypeDelete the certificate with the given domain and name.- Specified by:
deletein interfaceCSCertificateStoreType- Parameters:
domain- The domainname- The certificate name- Returns:
trueif a certificate existed and was deleted- Throws:
IOException- On I/O errors
-
all
Description copied from interface:CSCertificateStoreTypeObtain a read-only snapshot of all currently stored certificates.- Specified by:
allin interfaceCSCertificateStoreType- Returns:
- A snapshot
- Throws:
IOException- On I/O errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceCSCertificateStoreType- Returns:
trueif the store has been closed
-