use of com.adaptris.core.security.ConfiguredPrivateKeyPasswordProvider in project interlok by adaptris.
the class HttpsConsumerTest method createProducer.
private SimpleHttpProducer createProducer(HttpsProduceConnection https) {
SimpleHttpProducer p = new SimpleHttpProducer();
https.setKeystore(PROPERTIES.getProperty(JunitSecurityHelper.KEYSTORE_URL));
https.setAlwaysTrust(true);
https.setPrivateKeyPasswordProvider(new ConfiguredPrivateKeyPasswordProvider(PROPERTIES.getProperty(JunitSecurityHelper.SECURITY_PASSWORD)));
https.setKeystorePassword(PROPERTIES.getProperty(JunitSecurityHelper.SECURITY_PASSWORD));
p.registerConnection(https);
p.setContentTypeKey("content.type");
p.setIgnoreServerResponseCode(true);
return p;
}
Aggregations