configuration.getSecurityProvider(),
configuration.getKeyStoreFile(),
configuration.getTrustStoreFile(),
configuration.getPassphrase().toCharArray());
} else {
ClassResolver resolver = consumer != null ? consumer.getContext().getClassResolver() : null;
sslEngineFactory = new SSLEngineFactory(resolver,
configuration.getKeyStoreFormat(),
configuration.getSecurityProvider(),
configuration.getKeyStoreResource(),
configuration.getTrustStoreResource(),