serialize method
Interface for output serialization.
Implementation
@override
void serialize(SerializableOutput output) {
serializeString(output, userName);
serializeString(output, serviceName);
serializeString(output, methodName);
if (methodName == 'publickey') {
output.addUint8(1);
serializeString(output, algoName);
serializeString(output, secret);
serializeString(output, sig);
} else if (methodName == 'password') {
output.addUint8(0);
serializeString(output, secret);
} else if (methodName == 'keyboard-interactive') {
serializeString(output, '');
serializeString(output, '');
}
}