package DBProxy.MySQL.Protocol;
import java.util.ArrayList;
public class AuthSwitchResponse extends Packet {
public String authPluginResponse = "";
@Override
public ArrayList<byte[]> getPayload() {
ArrayList<byte[]> payload = new ArrayList<>();
payload.add(Proto.build_eop_str(this.authPluginResponse, true));
return payload;
}
public static AuthSwitchResponse loadFromPacket(byte[] packet) {
AuthSwitchResponse obj = new AuthSwitchResponse();
Proto proto = new Proto(packet, 3);
obj.sequenceId = proto.get_fixed_int(1);
obj.authPluginResponse = proto.get_eop_str(true);
return obj;
}
}