类 CachingSha2PasswordPlugin

    • 字段详细资料

      • PLUGIN_NAME

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

      • CachingSha2PasswordPlugin

        public CachingSha2PasswordPlugin()
    • 方法详细资料

      • 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 until either an Exception is thrown (authentication failure, please use appropriate SQLStates) or the method returns false or driver receives an OK packet from the server which indicates that the connection has been already approved. If, on return from this method, toServer is a non-empty list of buffers, then these buffers should be sent to the server in order and without any reads in between them. If toServer is an empty list, no data should be sent to server. If method returns true, it means that this plugin does not need any more data from the server to conclude the handshake and this method should not be called again. (Note that server can send an Auth Method Switch request and then another handshake will start, possibly using a different plugin.) If this method returns false, it means that plugin needs more data from the server to conclude the handshake. In that case next handshake data payload should be read from the server (after possibly writing data from toServer as explained above). Then this method should be called again with the new data in fromServer parameter. 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).
        返回:
        False if more data should be read from the server and next call to this method made, true otherwise.