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 |
getKeyStoreType(ConnectionType type)
The KeyStore type (jks, jceks, pkcs12, etc) for the identity and trust store for connections created by this
listener.
|
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) |
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, stop
public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.public void destroy()
BasicModule
Destroys the module.
Does nothing in the basic module.
destroy
in interface Module
destroy
in class BasicModule
public IdentityStore getIdentityStore(ConnectionType type)
public TrustStore getTrustStore(ConnectionType type)
public void replaceIdentityStore(ConnectionType type, CertificateStoreConfiguration configuration, boolean createIfAbsent) throws CertificateStoreConfigException
CertificateStoreConfigException
public void replaceTrustStore(ConnectionType type, CertificateStoreConfiguration configuration, boolean createIfAbsent) throws CertificateStoreConfigException
CertificateStoreConfigException
public CertificateStoreConfiguration getIdentityStoreConfiguration(ConnectionType type) throws IOException
IOException
public CertificateStoreConfiguration getTrustStoreConfiguration(ConnectionType type) throws IOException
IOException
public Collection<Path> backup() throws IOException
IOException
- if the store could not be backed uppublic static String getKeyStoreType(ConnectionType type)
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–2019 Ignite Realtime. All rights reserved.