find static method

Iterable<JsonWebAlgorithm> find({
  1. String? operation,
  2. String? keyType,
})

Implementation

static Iterable<JsonWebAlgorithm> find(
    {String? operation, String? keyType}) sync* {
  for (var a in allAlgorithms) {
    if (operation != null) {
      if (!a.keyOperations.contains(operation)) continue;
    }
    if (keyType != null) {
      if (a.type != keyType) continue;
    }
    yield a;
  }
}