Search in sources :

Example 1 with KsqlDefaultSecurityExtension

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;
}
Also used : KsqlDefaultSecurityExtension(io.confluent.ksql.security.KsqlDefaultSecurityExtension) KsqlSecurityExtension(io.confluent.ksql.security.KsqlSecurityExtension)

Example 2 with KsqlDefaultSecurityExtension

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();
}
Also used : Server(io.confluent.ksql.api.server.Server) KsqlDefaultSecurityExtension(io.confluent.ksql.security.KsqlDefaultSecurityExtension) KsqlRestConfig(io.confluent.ksql.rest.server.KsqlRestConfig) ServerState(io.confluent.ksql.rest.server.state.ServerState)

Aggregations

KsqlDefaultSecurityExtension (io.confluent.ksql.security.KsqlDefaultSecurityExtension)2 Server (io.confluent.ksql.api.server.Server)1 KsqlRestConfig (io.confluent.ksql.rest.server.KsqlRestConfig)1 ServerState (io.confluent.ksql.rest.server.state.ServerState)1 KsqlSecurityExtension (io.confluent.ksql.security.KsqlSecurityExtension)1