public abstract class CertificateStore extends Object
IdentityStore
TrustStore
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 |
---|---|
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
CertificateStoreConfigException
public void reload() throws CertificateStoreConfigException
CertificateStoreConfigException
public void persist() throws CertificateStoreConfigException
CertificateStoreConfigException
public Map<String,X509Certificate> getAllCertificates() throws KeyStoreException
KeyStoreException
public void delete(String alias) throws CertificateStoreConfigException
alias
- The alias for which to delete an entry (cannot be null or empty).CertificateStoreConfigException
public KeyStore getStore()
public CertificateStoreConfiguration getConfiguration()
Copyright © 2003-2008 Jive Software.