buildCommand method

  1. @override
String buildCommand()
override

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

Implementation

@override
String buildCommand() {
  StringBuffer serverCommandBuffer = StringBuffer('pkam');
  if (signingAlgo != null && signingAlgo!.isNotEmpty) {
    serverCommandBuffer.write(':signingAlgo:$signingAlgo');
  }
  if (hashingAlgo != null && hashingAlgo!.isNotEmpty) {
    serverCommandBuffer.write(':hashingAlgo:$hashingAlgo');
  }
  if (enrollmentlId != null && enrollmentlId!.isNotEmpty) {
    serverCommandBuffer.write(':enrollmentId:$enrollmentlId');
  }
  return (serverCommandBuffer..write(':$signature\n')).toString();
}