接口 AuthenticationProvider<M extends Message>

    • 方法详细资料

      • changeUser

        void changeUser​(ServerSession serverSession,
                        String userName,
                        String password,
                        String database)
        Re-authenticates as the given user and password
        参数:
        serverSession - ServerSession object
        userName - user name
        password - password
        database - db name
      • getEncodingForHandshake

        String getEncodingForHandshake()
      • getCharsetForHandshake

        static byte getCharsetForHandshake​(String enc,
                                           ServerVersion sv)
        Get the MySQL collation index for the handshake packet. A single byte will be added to the packet corresponding to the collation index found for the requested Java encoding name. If the index is > 255 which may be valid at some point in the future, an exception will be thrown. At the time of this implementation the index cannot be > 255 and only the COM_CHANGE_USER rpc, not the handshake response, can handle a value > 255.
        参数:
        enc - The Java encoding name used to lookup the collation index
        sv - server version
        返回:
        collation index