public abstract class CertificateStore extends Object
IdentityStoreTrustStore| Modifier and Type | Field and Description |
|---|---|
protected CertificateStoreConfiguration |
configuration |
protected static Provider |
PROVIDER |
protected KeyStore |
store |
| Constructor and Description |
|---|
CertificateStore(CertificateStoreConfiguration configuration,
boolean createIfAbsent) |
| Modifier and Type | Method and Description |
|---|---|
Path |
backup()
Copies the file that is the persistent storage for this store to a new file in the backup location.
|
void |
delete(String alias)
Deletes an entry (by entry) in this store.
|
Map<String,X509Certificate> |
getAllCertificates()
Returns a collection of all x.509 certificates in this store.
|
CertificateStoreConfiguration |
getConfiguration() |
KeyStore |
getStore() |
void |
persist()
Saves the current state of the store to disk.
|
void |
reload()
Reloads the content of the store from disk.
|
protected static final Provider PROVIDER
protected final KeyStore store
protected final CertificateStoreConfiguration configuration
public CertificateStore(CertificateStoreConfiguration configuration, boolean createIfAbsent) throws CertificateStoreConfigException
CertificateStoreConfigExceptionpublic void reload()
throws CertificateStoreConfigException
CertificateStoreConfigException - if the store could not be reloadedpublic void persist()
throws CertificateStoreConfigException
CertificateStoreConfigException - of the configuration could not be persistedpublic Path backup()
public Map<String,X509Certificate> getAllCertificates() throws KeyStoreException
KeyStoreException - if a keystore has not been initializedpublic void delete(String alias) throws CertificateStoreConfigException
alias - The alias for which to delete an entry (cannot be null or empty).CertificateStoreConfigException - if the entry could not be deletedpublic KeyStore getStore()
public CertificateStoreConfiguration getConfiguration()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.