use of org.apache.camel.util.jsse.SSLContextClientParameters in project wildfly-camel by wildfly-extras.
the class CXFWSSecureConsumerIntegrationTest method createSSLContextParameters.
private SSLContextParameters createSSLContextParameters() {
KeyStoreParameters ksp = new KeyStoreParameters();
ksp.setResource(System.getProperty("jboss.server.config.dir") + "/application.keystore");
ksp.setPassword("password");
KeyManagersParameters kmp = new KeyManagersParameters();
kmp.setKeyStore(ksp);
kmp.setKeyPassword("password");
SSLContextClientParameters sslContextClientParameters = new SSLContextClientParameters();
SSLContextParameters sslContextParameters = new SSLContextParameters();
sslContextParameters.setClientParameters(sslContextClientParameters);
sslContextParameters.setKeyManagers(kmp);
TrustManagersParameters tmp = new TrustManagersParameters();
tmp.setKeyStore(ksp);
sslContextParameters.setTrustManagers(tmp);
return sslContextParameters;
}
use of org.apache.camel.util.jsse.SSLContextClientParameters in project camel by apache.
the class AbstractSSLContextClientParametersFactoryBean method createInstance.
@Override
protected SSLContextClientParameters createInstance() {
SSLContextClientParameters newInstance = new SSLContextClientParameters();
newInstance.setCamelContext(getCamelContext());
if (sniHostNamesDefinition != null) {
newInstance.addAllSniHostNames(sniHostNamesDefinition.getSniHostName());
}
return newInstance;
}
Aggregations