Interface AuthenticationPluginFactory

All Known Implementing Classes:
CachingSha2PasswordPluginFactory, ClearPasswordPluginFactory, Ed25519PasswordPluginFactory, NativePasswordPluginFactory, ParsecPasswordPluginFactory, SendGssApiAuthPacketFactory, SendPamAuthPacketFactory

public interface AuthenticationPluginFactory
Authentication plugin descriptor
  • Method Details

    • type

      String type()
      Authentication plugin type.
      Returns:
      authentication plugin type. ex: mysql_native_password
    • initialize

      AuthenticationPlugin initialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)
      Plugin initialization.
      Parameters:
      authenticationData - authentication data (password/token)
      seed - server provided seed
      conf - Connection options
      hostAddress - host address
    • requireSecure

      default boolean requireSecure()
      Whether this authentication plugin requires a secure connection. Plugins that transmit the password (or other secret) in clear text return true; the driver then only runs them over a secure transport (TLS, or a local unix socket), never over plain TCP.
      Returns:
      true if a secure connection is required