Class PasswordAuthenticator

    • Method Detail

      • authKeyValueConnection

        public void authKeyValueConnection​(EndpointContext ctx,
                                           com.couchbase.client.core.deps.io.netty.channel.ChannelPipeline pipeline)
        Description copied from interface: Authenticator
        Allows the authenticator to add KV handlers during connection bootstrap to perform authentication.
        Specified by:
        authKeyValueConnection in interface Authenticator
        Parameters:
        ctx - the endpoint context.
        pipeline - the pipeline when the endpoint is constructed.
      • authHttpRequest

        public void authHttpRequest​(ServiceType serviceType,
                                    com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpRequest request)
        Description copied from interface: Authenticator
        Allows to add authentication credentials to the http request for the given service.
        Specified by:
        authHttpRequest in interface Authenticator
        Parameters:
        serviceType - the service for this request.
        request - the http request.