MySQLPacketAuthSwitchRequest class

Representa o pacote "Auth Switch Request" do protocolo MySQL.

Esse pacote é enviado pelo servidor para solicitar que o cliente utilize um método de autenticação diferente. O pacote contém:

  • Um header (1 byte) indicando o tipo de pacote;
  • O nome do plugin de autenticação (string terminada em null);
  • Dados do plugin de autenticação (restante do buffer).
Inheritance

Constructors

MySQLPacketAuthSwitchRequest.new({required int header, required Uint8List authPluginData, required String authPluginName})
Construtor para criar uma instância de MySQLPacketAuthSwitchRequest.
MySQLPacketAuthSwitchRequest.decode(Uint8List buffer)
Decodifica um Uint8List recebido do servidor e cria uma instância de MySQLPacketAuthSwitchRequest.
factory

Properties

authPluginData Uint8List
Dados enviados pelo servidor para o plugin de autenticação.
final
authPluginName String
Nome do plugin de autenticação solicitado.
final
hashCode int
The hash code for this object.
no setterinherited
Cabeçalho do pacote.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() Uint8List
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited