use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FileToFtpsImplicitTLSWithClientAuthAndSSLContextParametersTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
KeyStoreParameters ksp = new KeyStoreParameters();
ksp.setResource("server.jks");
ksp.setPassword("password");
KeyManagersParameters kmp = new KeyManagersParameters();
kmp.setKeyPassword("password");
kmp.setKeyStore(ksp);
TrustManagersParameters tmp = new TrustManagersParameters();
tmp.setKeyStore(ksp);
SSLContextParameters sslContextParameters = new SSLContextParameters();
sslContextParameters.setSecureSocketProtocol("TLS");
sslContextParameters.setKeyManagers(kmp);
sslContextParameters.setTrustManagers(tmp);
JndiRegistry registry = super.createRegistry();
registry.bind("sslContextParameters", sslContextParameters);
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FtpBadLoginInProducerConnectionLeakTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
SocketFactory sf = new AuditingSocketFactory();
jndi.bind("sf", sf);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FtpBadLoginMockNoopConnectionLeakTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
SocketFactory sf = new AuditingSocketFactory();
jndi.bind("sf", sf);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FtpConsumerThrowExceptionOnLoginFailedTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("myPoll", new MyPoll());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class FtpConsumerUsingFTPClientConfigTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("myConfig", createConfig());
return jndi;
}
Aggregations