Slide 24
Slide 24 text
Security (client side)
// use HTTP authentication
clientProperties().put(
ClientProperties.CREDENTIALS,
new Credentials("user", "pwd")
);
// Enable SSL
SslContextConfigurator scc = new SslContextConfigurator();
scc.setTrustStoreFile("...");
scc.setTrustStorePassword("...");
SslEngineConfigurator sec
= new SslEngineConfigurator(ssc, true, false, false);
clientProperties().put(
ClientManager.SSL_ENGINE_CONFIGURATOR, sec);
#jsr356-DevoxxMA 10
@b_e_n_a_s