Here is a proposal for SSLContext that supports delegation to alternate instances based on peer information:

https://github.com/wildfly/wildfly-proposals/pull/328

Any feedback is welcomed.

Thanks,
Diana Křepinská (Vilkoláková)