managerFactory.init(null, this.defaultpw.toCharArray());
KeyManager[] managers = managerFactory.getKeyManagers();
log.info(keys.getClass().toString());
for (int i = 0; i < managers.length; i++) {
if (managers[i] instanceof X509KeyManager) {
X509KeyManager manager = (X509KeyManager) managers[i];
managers[i] = new WrappedX509KeyManager(manager, keys);
}
}
TrustManager[] trusts = new TrustManager[] { new AlwaysTrustManager(this.getTrustStore()) };
context.init(managers, trusts, this.rand);