@Override
                public X509Certificate[] getCertificateChain(String alias) {
                    return chain;
                }
Creates a KeyManager that identifies with the provided keyPair and certificate chain.
xmppserver/src/test/java/org/jivesoftware/openfire/session/AbstractRemoteServerDummy.java