buildCommand method

  1. @override
String buildCommand()
override

Build the @ command to be sent to remote secondary for execution.

Implementation

@override
String buildCommand() {
  var sb = StringBuffer("keys:")
    ..write(operation)
    ..write(':$visibility')
    ..write(_getValueWithParamName('namespace', namespace))
    ..write(_getValueWithParamName('appName', appName))
    ..write(_getValueWithParamName('deviceName', deviceName))
    ..write(_getValueWithParamName('keyType', keyType))
    ..write(_getValueWithParamName('encryptionKeyName', encryptionKeyName))
    ..write(_getValueWithParamName('keyName', keyName))
    ..write(
        _getValue(value)) //value is prepended with a whitespace as per regex
    ..write('\n');

  return sb.toString();
}