Class ClearPasswordPluginFactory

java.lang.Object
org.mariadb.jdbc.plugin.authentication.addon.ClearPasswordPluginFactory
All Implemented Interfaces:
AuthenticationPluginFactory

public class ClearPasswordPluginFactory extends Object implements AuthenticationPluginFactory
Clear password plugin.
  • Constructor Details

    • ClearPasswordPluginFactory

      public ClearPasswordPluginFactory()
  • Method Details

    • type

      public String type()
      Description copied from interface: AuthenticationPluginFactory
      Authentication plugin type.
      Specified by:
      type in interface AuthenticationPluginFactory
      Returns:
      authentication plugin type. ex: mysql_native_password
    • requireSecure

      public boolean requireSecure()
      Description copied from interface: AuthenticationPluginFactory
      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.
      Specified by:
      requireSecure in interface AuthenticationPluginFactory
      Returns:
      true if a secure connection is required
    • initialize

      public AuthenticationPlugin initialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)
      Initialization.
      Specified by:
      initialize in interface AuthenticationPluginFactory
      Parameters:
      authenticationData - authentication data (password/token)
      seed - server provided seed
      conf - Connection string options
      hostAddress - host information