Add support for custom KeyManagers