Search in sources :

Example 1 with ConfiguredPrivateKeyPasswordProvider

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;
}
Also used : SimpleHttpProducer(com.adaptris.http.legacy.SimpleHttpProducer) ConfiguredPrivateKeyPasswordProvider(com.adaptris.core.security.ConfiguredPrivateKeyPasswordProvider)

Aggregations

ConfiguredPrivateKeyPasswordProvider (com.adaptris.core.security.ConfiguredPrivateKeyPasswordProvider)1 SimpleHttpProducer (com.adaptris.http.legacy.SimpleHttpProducer)1