deserialize method

  1. @override
void deserialize(
  1. SerializableInput input
)
override

Interface for intput serialization.

Implementation

@override
void deserialize(SerializableInput input) {
  userName = deserializeString(input);
  serviceName = deserializeString(input);
  methodName = deserializeString(input);
  if (methodName == 'publickey') {
    input.getUint8();
    algoName = deserializeString(input);
    secret = deserializeStringBytes(input);
    sig = deserializeStringBytes(input);
  } else if (methodName == 'password') {
    input.getUint8();
    secret = deserializeStringBytes(input);
  } else if (methodName == 'keyboard-interactive') {
    deserializeString(input);
    deserializeString(input);
  }
}