类 CachingSha2PasswordPlugin

    • 字段详细资料

      • PLUGIN_NAME

        public static String PLUGIN_NAME
    • 构造器详细资料

      • CachingSha2PasswordPlugin

        public CachingSha2PasswordPlugin()
    • 方法详细资料

      • init

        public void init​(Protocol<NativePacketPayload> prot)
        从接口复制的说明: AuthenticationPlugin
        We need direct Protocol reference because it isn't available from Connection before authentication complete.
        参数:
        prot - protocol instance
      • reset

        public void reset()
        从接口复制的说明: AuthenticationPlugin
        Resets the authentication steps sequence.
      • nextAuthenticationStep

        public boolean nextAuthenticationStep​(NativePacketPayload fromServer,
                                              List<NativePacketPayload> toServer)
        从接口复制的说明: AuthenticationPlugin
        Process authentication handshake data from server and optionally produce data to be sent back to the server. The driver will keep calling this method on each new server packet arrival until either an Exception is thrown (authentication failure, please use appropriate SQLStates) or the number of exchange iterations exceeded max limit or an OK packet is sent by server indicating that the connection has been approved. If, on return from this method, toServer is a non-empty list of buffers, then these buffers will be sent to the server in the same order and without any reads in between them. If toServer is an empty list, no data will be sent to server, driver immediately reads the next packet from server. In case of errors the method should throw Exception.
        指定者:
        nextAuthenticationStep 在接口中 AuthenticationPlugin<NativePacketPayload>
        覆盖:
        nextAuthenticationStep 在类中 Sha256PasswordPlugin
        参数:
        fromServer - a buffer containing handshake data payload from server (can be empty).
        toServer - list of buffers with data to be sent to the server (the list can be empty, but buffers in the list should contain data).
        返回:
        return value is ignored.