matchesFeature method

  1. @override
bool matchesFeature(
  1. List<XMLNode> features
)
override

Returns true if a feature in features, which are the children of the <stream:features /> nonza, can be negotiated. Otherwise, returns false.

Implementation

@override
bool matchesFeature(List<XMLNode> features) {
  if (super.matchesFeature(features)) {
    if (!attributes.getSocket().isSecure()) {
      _log.warning(
        'Refusing to match SASL feature due to unsecured connection',
      );
      return false;
    }

    return true;
  }

  return false;
}