If you mean end to end encryption like OTR here you have some ideas:
Basically you can install plugin for Openfire or deploy Spark with removed OTR plugin.