Interface AuthenticationPluginFactory

    • Method Detail

      • type

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

        AuthenticationPlugin initialize​(java.lang.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