Class AuthenticatorWrapper

java.lang.Object
com.couchbase.client.core.env.AuthenticatorWrapper
All Implemented Interfaces:
Authenticator
Direct Known Subclasses:
DelegatingAuthenticator

@NullMarked @Internal public abstract class AuthenticatorWrapper extends Object implements Authenticator
  • Constructor Details

    • AuthenticatorWrapper

      public AuthenticatorWrapper()
  • Method Details

    • wrapped

      protected abstract Authenticator wrapped()
    • authKeyValueConnection

      public void authKeyValueConnection(EndpointContext endpointContext, 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:
      endpointContext - 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.
    • getAuthHeaderValue

      public @Nullable String getAuthHeaderValue()
      Description copied from interface: Authenticator
      Returns the value of the Authorization header to apply to HTTP requests, or null if no header should be applied.
      Specified by:
      getAuthHeaderValue in interface Authenticator
    • applyTlsProperties

      public void applyTlsProperties(com.couchbase.client.core.deps.io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
      Description copied from interface: Authenticator
      The authenticator gets the chance to attach the client certificate to the ssl context if needed.
      Specified by:
      applyTlsProperties in interface Authenticator
      Parameters:
      sslContextBuilder - the netty context builder
    • requiresTls

      public boolean requiresTls()
      Specified by:
      requiresTls in interface Authenticator
    • getSingleStepSaslAuthParameters

      public @Nullable SingleStepSaslAuthParameters getSingleStepSaslAuthParameters()
      Description copied from interface: Authenticator
      Returns parameters for single-step SASL authentication refresh requests, or null if unsupported.
      Specified by:
      getSingleStepSaslAuthParameters in interface Authenticator