use of io.confluent.ksql.security.KsqlDefaultSecurityExtension in project ksql by confluentinc.
the class KsqlRestApplication method loadSecurityExtension.
private static KsqlSecurityExtension loadSecurityExtension(final KsqlConfig ksqlConfig) {
final KsqlSecurityExtension securityExtension = Optional.ofNullable(ksqlConfig.getConfiguredInstance(KsqlConfig.KSQL_SECURITY_EXTENSION_CLASS, KsqlSecurityExtension.class)).orElse(new KsqlDefaultSecurityExtension());
securityExtension.initialize(ksqlConfig);
return securityExtension;
}
use of io.confluent.ksql.security.KsqlDefaultSecurityExtension in project ksql by confluentinc.
the class BasePerfRunner method setUp.
private void setUp() {
vertx = Vertx.vertx();
KsqlRestConfig serverConfig = createServerConfig();
final ServerState serverState = new ServerState();
serverState.setReady();
server = new Server(vertx, serverConfig, endpoints, new KsqlDefaultSecurityExtension(), Optional.empty(), serverState, Optional.empty());
server.start();
client = createClient();
}
Aggregations