MCPcopy
hub / github.com/authlib/authlib / as_json

Method as_json

authlib/jose/rfc7517/key_set.py:14–17  ·  view source on GitHub ↗

Represent this key set as a JSON string.

(self, is_private=False, **params)

Source from the content-addressed store, hash-verified

12 return {"keys": [k.as_dict(is_private, **params) for k in self.keys]}
13
14 def as_json(self, is_private=False, **params):
15 """Represent this key set as a JSON string."""
16 obj = self.as_dict(is_private, **params)
17 return json_dumps(obj)
18
19 def find_by_kid(self, kid, **params):
20 """Find the key matches the given kid value.

Callers 1

test_jwk_key_setFunction · 0.95

Calls 2

as_dictMethod · 0.95
json_dumpsFunction · 0.90

Tested by 1

test_jwk_key_setFunction · 0.76