Interface AuthenticationPlugin

    • Method Detail

      • type

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

        void initialize​(String authenticationData,
                        byte[] seed,
                        Configuration conf)
        Plugin initialization.
        Parameters:
        authenticationData - authentication data (password/token)
        seed - server provided seed
        conf - Connection options
      • process

        org.mariadb.jdbc.client.ReadableByteBuf process​(Writer encoder,
                                                        Reader decoder,
                                                        org.mariadb.jdbc.client.Context context)
                                                 throws IOException,
                                                        SQLException
        Process plugin authentication.
        Parameters:
        encoder - out stream
        decoder - in stream
        context - connection context
        Returns:
        response packet
        Throws:
        IOException - if socket error
        SQLException - if plugin exception