private ProtonServer createProtonServer(ProtonServerOptions options) { return ProtonServer.create(vertx, options) .saslAuthenticatorFactory(saslAuthenticatorFactory); }
private ProtonServer createProtonServer(final ProtonServerOptions options) { return ProtonServer.create(vertx, options) .saslAuthenticatorFactory(saslAuthenticatorFactory); }
private ProtonServer createProtonServer(final ProtonServerOptions options) { return ProtonServer.create(vertx, options) .saslAuthenticatorFactory(saslAuthenticatorFactory); }
private ProtonServer createServer(final ProtonServer server, final ProtonServerOptions options) { final ProtonServer createdServer = (server != null) ? server : ProtonServer.create(this.vertx, options); if (getConfig().isAuthenticationRequired()) { createdServer.saslAuthenticatorFactory(authenticatorFactory); } else { // use proton's default authenticator -> SASL ANONYMOUS createdServer.saslAuthenticatorFactory(null); } return createdServer; }
server.saslAuthenticatorFactory(() -> new SaslAuthenticator(keycloakSessionFactory, config, useTls, this)); server.connectHandler(this::connectHandler); LOG.info("Starting server on "+hostname+":"+ port);