Class ClearPasswordPlugin

    • Field Detail

      • authenticationData

        private java.lang.String authenticationData
    • Constructor Detail

      • ClearPasswordPlugin

        public ClearPasswordPlugin()
    • Method Detail

      • type

        public java.lang.String type()
        Description copied from interface: AuthenticationPlugin
        Authentication plugin type.
        Specified by:
        type in interface AuthenticationPlugin
        Returns:
        authentication plugin type. ex: mysql_native_password
      • initialize

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

        public ReadableByteBuf process​(Writer out,
                                       Reader in,
                                       Context context)
                                throws java.io.IOException
        Send password in clear text to server.
        Specified by:
        process in interface AuthenticationPlugin
        Parameters:
        out - out stream
        in - in stream
        context - context
        Returns:
        response packet
        Throws:
        java.io.IOException - if socket error