All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.questdb.cutlass.pgwire.UsernamePasswordPgWireAuthenticatorFactory Maven / Gradle / Ivy

package io.questdb.cutlass.pgwire;

import io.questdb.cairo.sql.NetworkSqlExecutionCircuitBreaker;
import io.questdb.cutlass.auth.Authenticator;
import io.questdb.network.NetworkFacade;

public class UsernamePasswordPgWireAuthenticatorFactory implements PgWireAuthenticatorFactory {

    private final UsernamePasswordMatcher matcher;

    public UsernamePasswordPgWireAuthenticatorFactory(UsernamePasswordMatcher matcher) {
        this.matcher = matcher;
    }

    @Override
    public Authenticator getPgWireAuthenticator(
            NetworkFacade nf,
            PGWireConfiguration configuration,
            NetworkSqlExecutionCircuitBreaker circuitBreaker,
            CircuitBreakerRegistry registry,
            OptionsListener optionsListener
    ) {
        return new CleartextPasswordPgWireAuthenticator(nf, configuration, circuitBreaker, registry, optionsListener, matcher);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy