Interface CSCertificateStoreType
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Implementing Classes:
CSCertificateStoreSQLite
A certificate store.
-
Method Summary
Modifier and TypeMethodDescriptionall()Obtain a read-only snapshot of all currently stored certificates.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
boolean isClosed()- Returns:
trueif the store has been closed
-
put
Create or update a certificate.- Parameters:
certificate- The certificate- Throws:
IOException- On I/O errors
-
find
Find a certificate that has the given domain and name.- Parameters:
domain- The domainname- The certificate name- Returns:
- The certificate, if one exists
- Throws:
IOException- On errors
-
delete
Delete the certificate with the given domain and name.- Parameters:
domain- The domainname- The certificate name- Returns:
trueif a certificate existed and was deleted- Throws:
IOException- On I/O errors
-
all
Obtain a read-only snapshot of all currently stored certificates.- Returns:
- A snapshot
- Throws:
IOException- On I/O errors
-