sslContextFactory.setKeyStorePassword("asdfgh");
sslContextFactory.setTrustStoreResource(Resource.newResource(trustStore)); // contains client certificate
sslContextFactory.setTrustStorePassword("asdfgh");
ResourceConfig rc = new ResourceConfig();
rc.register(new LoggingFilter(LOGGER, true));
rc.registerClasses(RootResource.class, SecurityFilter.class, AuthenticationExceptionMapper.class);
try {
webServer = JettyHttpContainerFactory.createServer(
getBaseURI(),