Interface AuthenticationPlugin

    • Method Detail

      • type

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

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

        ReadableByteBuf process​(PacketWriter encoder,
                                PacketReader decoder,
                                Context context)
                         throws java.io.IOException,
                                java.sql.SQLException
        Process plugin authentication.
        Parameters:
        encoder - out stream
        decoder - in stream
        context - connection context
        Returns:
        response packet
        Throws:
        java.io.IOException - if socket error
        java.sql.SQLException - if plugin exception