public class CertificateStoreManager extends BasicModule
| Constructor and Description |
|---|
CertificateStoreManager() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Path> |
backup()
Creates a backup of all files that back any of the certificate stores.
|
void |
destroy()
Destroys the module.
|
IdentityStore |
getIdentityStore(ConnectionType type) |
static String |
getIdentityStoreBackupDirectory(ConnectionType type)
The location (relative to OPENFIRE_HOME) of the directory that holds backups for identity stores.
|
CertificateStoreConfiguration |
getIdentityStoreConfiguration(ConnectionType type) |
static String |
getIdentityStoreType(ConnectionType type)
The KeyStore type (jks, jceks, pkcs12, etc) for the identity store for connections of a particular type.
|
static String |
getKeyStoreType(ConnectionType type)
Deprecated.
|
TrustStore |
getTrustStore(ConnectionType type) |
static String |
getTrustStoreBackupDirectory(ConnectionType type)
The location (relative to OPENFIRE_HOME) of the directory that holds backups for trust stores.
|
CertificateStoreConfiguration |
getTrustStoreConfiguration(ConnectionType type) |
static String |
getTrustStoreType(ConnectionType type)
The KeyStore type (jks, jceks, pkcs12, etc) for the trust store for connections of a particular type.
|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
void |
replaceIdentityStore(ConnectionType type,
CertificateStoreConfiguration configuration,
boolean createIfAbsent) |
void |
replaceTrustStore(ConnectionType type,
CertificateStoreConfiguration configuration,
boolean createIfAbsent) |
boolean |
usesDistinctConfigurationForEachType()
Checks if Openfire is configured to use the same set of three keystore files for all connection types (one
identity store, and two trust stores - one for client-based connections, and one for server/component-based
connections).
|
getName, start, stoppublic void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.public void destroy()
BasicModuleDestroys the module.
Does nothing in the basic module.
destroy in interface Moduledestroy in class BasicModulepublic IdentityStore getIdentityStore(ConnectionType type)
public TrustStore getTrustStore(ConnectionType type)
public void replaceIdentityStore(ConnectionType type, CertificateStoreConfiguration configuration, boolean createIfAbsent) throws CertificateStoreConfigException
CertificateStoreConfigExceptionpublic void replaceTrustStore(ConnectionType type, CertificateStoreConfiguration configuration, boolean createIfAbsent) throws CertificateStoreConfigException
CertificateStoreConfigExceptionpublic CertificateStoreConfiguration getIdentityStoreConfiguration(ConnectionType type) throws IOException
IOExceptionpublic CertificateStoreConfiguration getTrustStoreConfiguration(ConnectionType type) throws IOException
IOExceptionpublic Collection<Path> backup() throws IOException
IOException - if the store could not be backed uppublic static String getTrustStoreType(ConnectionType type)
type - the connection typepublic static String getIdentityStoreType(ConnectionType type)
type - the connection type@Deprecated public static String getKeyStoreType(ConnectionType type)
getTrustStoreType(ConnectionType) or getIdentityStoreType(ConnectionType)type - the connection typepublic static String getIdentityStoreBackupDirectory(ConnectionType type)
type - the connection typepublic static String getTrustStoreBackupDirectory(ConnectionType type)
type - the connection typepublic boolean usesDistinctConfigurationForEachType()
throws IOException
IOException - if there was an IO errorCopyright © 2003–2020 Ignite Realtime. All rights reserved.