Class CSCertificateStoreSQLite
java.lang.Object
com.io7m.certusine.vanilla.internal.store.CSCertificateStoreSQLite
-
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.
-
Method Details
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceCSCertificateStoreType- Returns:
trueif the store has been closed
-
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
-