Class ClearPasswordPlugin

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(java.lang.String authenticationData, byte[] authData, Options options)
      Plugin initialization.
      boolean mustUseSsl()
      Indicate if use of this plugins need SSL enabled.
      java.lang.String name()
      Authentication plugin name.
      Buffer process​(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence)
      Send password in clear text to server.
      java.lang.String type()
      Authentication plugin type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • authenticationData

        private java.lang.String authenticationData
      • passwordCharacterEncoding

        private java.lang.String passwordCharacterEncoding
    • Constructor Detail

      • ClearPasswordPlugin

        public ClearPasswordPlugin()
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: AuthenticationPlugin
        Authentication plugin name.
        Specified by:
        name in interface AuthenticationPlugin
        Returns:
        authentication plugin name. ex: Mysql native password
      • 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[] authData,
                               Options options)
        Description copied from interface: AuthenticationPlugin
        Plugin initialization.
        Specified by:
        initialize in interface AuthenticationPlugin
        Parameters:
        authenticationData - authentication data (password/token)
        authData - server provided seed
        options - Connection string options
      • process

        public Buffer process​(PacketOutputStream out,
                              PacketInputStream in,
                              java.util.concurrent.atomic.AtomicInteger sequence)
                       throws java.io.IOException
        Send password in clear text to server.
        Specified by:
        process in interface AuthenticationPlugin
        Parameters:
        out - out stream
        in - in stream
        sequence - packet sequence
        Returns:
        response packet
        Throws:
        java.io.IOException - if socket error