We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f483c0 commit 4fb616eCopy full SHA for 4fb616e
1 file changed
src/cryptojwt/key_jar.py
@@ -630,6 +630,14 @@ def copy(self):
630
kj.httpc = self.httpc
631
return kj
632
633
+ def __len__(self):
634
+ keys = 0
635
+ for iss in list(self.owners()):
636
+ for kb in self.issuer_keys[iss]:
637
+ if len(kb):
638
+ keys += len(kb)
639
+ return keys
640
+
641
642
# =============================================================================
643
0 commit comments