public KeyManager[] getKeyManagers() throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException
    {
        return getKeyManagerFactory().getKeyManagers();
    }
Generates KeyManager instances suitable for connections that are created based on a particular configuration.

@return KeyManagers applicable to a connection that is established using the provided configuration.
@throws UnrecoverableKeyException if the key could not be recovered
@throws NoSuchAlgorithmException if the algorithm was unrecognised
@throws KeyStoreException if there was a problem loading the keystore
xmppserver/src/main/java/org/jivesoftware/openfire/spi/EncryptionArtifactFactory.java