buildXml method

  1. @override
void buildXml(
  1. XmlBuilder builder, {
  2. String tag = 'Security',
  3. String? namespace,
})
override

Implementation

@override
void buildXml(
  XmlBuilder builder, {
  String tag = 'Security',
  String? namespace,
}) =>
    builder.element(
      'Security',
      namespace: namespace,
      // namespaces: {Xmlns.s: 's'},
      nest: () {
        builder.namespace(
            'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd');

        builder.attribute(
          'mustUnderstand',
          mustUnderstand,
          namespace: Xmlns.s,
        );

        usernameToken.buildXml(builder);
      },
    );